Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 3a904ff

Browse files
committed
Updating Braze SDK
1 parent b99d346 commit 3a904ff

File tree

13 files changed

+63
-26
lines changed

13 files changed

+63
-26
lines changed

Appboy-iOS-SDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Appboy-iOS-SDK"
3-
s.version = "4.5.0"
3+
s.version = "4.5.1"
44
s.summary = "This is the Braze iOS SDK for Mobile Marketing Automation"
55
s.homepage = "http://www.braze.com"
66
s.license = { :type => 'Commercial', :text => 'Please refer to https://github.com/Appboy/appboy-ios-sdk/blob/master/LICENSE'}

AppboyKit/Appboy.bundle/Info.plist

0 Bytes
Binary file not shown.

AppboyKit/include/ABKInAppMessageControllerDelegate.h

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ typedef NS_ENUM(NSInteger, ABKInAppMessageDisplayChoice) {
2323
ABKDiscardInAppMessage
2424
};
2525

26+
typedef NS_ENUM(NSInteger, ABKTriggerEventType) {
27+
ABKTriggerEventTypeSessionStart,
28+
ABKTriggerEventTypeCustomEvent,
29+
ABKTriggerEventTypePurchase,
30+
ABKTriggerEventTypeOther
31+
};
32+
2633
/*!
2734
* The in-app message delegate allows you to control the display of the Braze in-app message. For more detailed
2835
* information on in-app message behavior, including when and how the delegate is used, see the documentation for the
@@ -32,7 +39,7 @@ typedef NS_ENUM(NSInteger, ABKInAppMessageDisplayChoice) {
3239
* you are using the In-App Message subspec, please use ABKInAppMessageUIDelegate.
3340
*/
3441

35-
/*
42+
/*!
3643
* Braze Public API: ABKInAppMessageControllerDelegate
3744
*/
3845
@protocol ABKInAppMessageControllerDelegate <NSObject>
@@ -52,18 +59,28 @@ typedef NS_ENUM(NSInteger, ABKInAppMessageDisplayChoice) {
5259
- (ABKInAppMessageDisplayChoice)beforeInAppMessageDisplayed:(ABKInAppMessage *)inAppMessage;
5360

5461
/*!
55-
* @param inAppMessage The control in-app message object being offered to the delegate method.
56-
* @return ABKInAppMessageDisplayChoice The control in-app message impression logging choice.
57-
* For details refer to the documentation regarding the ENUM ABKInAppMessageDisplayChoice above.
58-
* Logging a control message impression is an equivalent of displaying the message, except that no actual display occurs.
59-
*
60-
* This delegate method defines the timing of when the control in-app message impression event should be logged: now, later, or discarded.
61-
* Logging a control message impression is an equivalent of displaying the message, except that no actual display occurs.
62-
*
63-
* If there are situations where you would not want the control in-app message impression to be logged, you can use this delegate to delay
64-
* or discard it.
65-
*/
62+
* @param inAppMessage The control in-app message object being offered to the delegate method.
63+
* @return ABKInAppMessageDisplayChoice The control in-app message impression logging choice.
64+
* For details refer to the documentation regarding the ENUM ABKInAppMessageDisplayChoice above.
65+
* Logging a control message impression is an equivalent of displaying the message, except that no actual display occurs.
66+
*
67+
* This delegate method defines the timing of when the control in-app message impression event should be logged: now, later, or discarded.
68+
* Logging a control message impression is an equivalent of displaying the message, except that no actual display occurs.
69+
*
70+
* If there are situations where you would not want the control in-app message impression to be logged, you can use this delegate to delay
71+
* or discard it.
72+
*/
6673
- (ABKInAppMessageDisplayChoice)beforeControlMessageImpressionLogged:(ABKInAppMessage *)inAppMessage;
6774

75+
/*!
76+
* Executed when no trigger matches the Braze event.
77+
*
78+
* @param eventType The type of event that failed to match the user's triggers.
79+
* @param name The event name of a custom event, the product identifier for a purchase
80+
* event, or `nil` for a session start event.
81+
*/
82+
- (void)noMatchingTriggerForEvent:(ABKTriggerEventType)eventType
83+
name:(nullable NSString *)name;
84+
6885
@end
6986
NS_ASSUME_NONNULL_END

AppboyKit/include/Appboy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#import "ABKSdkMetadata.h"
1616

1717
#ifndef APPBOY_SDK_VERSION
18-
#define APPBOY_SDK_VERSION @"4.5.0"
18+
#define APPBOY_SDK_VERSION @"4.5.1"
1919
#endif
2020

2121
#if !TARGET_OS_TV

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 4.5.1
2+
3+
##### Fixed
4+
- Improves eligibility checks around the minimum trigger timeout for in-app messages by now checking at _trigger time_ in addition to _display time_.
5+
- Fixes an issue where purchases would not trigger certain templated in-app messages.
6+
7+
##### Added
8+
- Adds the delegate method `noMatchingTriggerForEvent:name:` to `ABKInAppMessageControllerDelegate`, which is called if no Braze in-app message was triggered for a given event.
9+
110
## 4.5.0
211

312
##### Added

Example/Stopwatch.xcodeproj/project.pbxproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@
13011301
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
13021302
CODE_SIGN_IDENTITY = "Apple Development";
13031303
COPY_PHASE_STRIP = NO;
1304-
CURRENT_PROJECT_VERSION = 4.5.0;
1304+
CURRENT_PROJECT_VERSION = 4.5.1;
13051305
ENABLE_STRICT_OBJC_MSGSEND = YES;
13061306
ENABLE_TESTABILITY = YES;
13071307
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -1357,7 +1357,7 @@
13571357
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
13581358
CODE_SIGN_IDENTITY = "Apple Distribution";
13591359
COPY_PHASE_STRIP = YES;
1360-
CURRENT_PROJECT_VERSION = 4.5.0;
1360+
CURRENT_PROJECT_VERSION = 4.5.1;
13611361
ENABLE_STRICT_OBJC_MSGSEND = YES;
13621362
GCC_C_LANGUAGE_STANDARD = gnu99;
13631363
GCC_NO_COMMON_BLOCKS = YES;
@@ -1389,7 +1389,6 @@
13891389
CODE_SIGN_ENTITLEMENTS = "$(SRCROOT)/Stopwatch/Supporting Files/Stopwatch.entitlements";
13901390
CODE_SIGN_IDENTITY = "Apple Development";
13911391
CODE_SIGN_STYLE = Automatic;
1392-
ENABLE_BITCODE = YES;
13931392
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
13941393
GCC_PRECOMPILE_PREFIX_HEADER = YES;
13951394
GCC_PREFIX_HEADER = "$(SRCROOT)/Stopwatch/Supporting Files/Stopwatch-Prefix.pch";
@@ -1415,7 +1414,6 @@
14151414
CODE_SIGN_ENTITLEMENTS = "$(SRCROOT)/Stopwatch/Supporting Files/Stopwatch.entitlements";
14161415
CODE_SIGN_IDENTITY = "Apple Development";
14171416
CODE_SIGN_STYLE = Automatic;
1418-
ENABLE_BITCODE = YES;
14191417
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
14201418
GCC_PRECOMPILE_PREFIX_HEADER = YES;
14211419
GCC_PREFIX_HEADER = "$(SRCROOT)/Stopwatch/Supporting Files/Stopwatch-Prefix.pch";

Example/Stopwatch.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Stopwatch/Sources/AppDelegate.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,12 @@ - (ABKInAppMessageDisplayChoice)beforeInAppMessageDisplayed:(ABKInAppMessage *)i
305305
return ABKDisplayInAppMessageNow;
306306
}
307307

308+
- (void)noMatchingTriggerForEvent:(ABKTriggerEventType)eventType
309+
name:(nullable NSString *)name {
310+
StopwatchDebugMsg(@"ABKInAppMessageControllerDelegate method called for eventType: %ld, and name: %@",
311+
(long)eventType, name);
312+
}
313+
308314
#pragma mark - ABKInAppMessageUIDelegate
309315

310316
/*- (WKWebViewConfiguration *)setCustomWKWebViewConfiguration {

Example/Stopwatch/Supporting Files/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
<key>CFBundleShortVersionString</key>
8-
<string>4.5.0</string>
8+
<string>4.5.1</string>
99
<key>CFBundleVersion</key>
1010
<string>1</string>
1111
<key>CFBundleDevelopmentRegion</key>

Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ let package = Package(
1919
targets: [
2020
.binaryTarget(
2121
name: "AppboyKitLibrary",
22-
url: "https://github.com/Appboy/appboy-ios-sdk/releases/download/4.5.0/AppboyKitLibrary.xcframework.zip",
23-
checksum: "963172c4ef6ed121a90c21aa5d038351184748262039199eaa23631ad3ea80c4"
22+
url: "https://github.com/Appboy/appboy-ios-sdk/releases/download/4.5.1/AppboyKitLibrary.xcframework.zip",
23+
checksum: "8ddf1821d24ccb135affca3bd7cde7b723446d98ed0e0a126bbaf43c548131e8"
2424
),
2525
.target(
2626
name: "AppboyKit",
@@ -53,8 +53,8 @@ let package = Package(
5353
),
5454
.binaryTarget(
5555
name: "AppboyPushStoryFramework",
56-
url: "https://github.com/Appboy/appboy-ios-sdk/releases/download/4.5.0/AppboyPushStoryFramework.xcframework.zip",
57-
checksum: "8c55069f0ad24ad6389764e4a6d4d85ac2f18964c1ed0c161f9d56e7a1e09cb4"
56+
url: "https://github.com/Appboy/appboy-ios-sdk/releases/download/4.5.1/AppboyPushStoryFramework.xcframework.zip",
57+
checksum: "f56eed2b727ad5d0c052cc192302b7d79ccd60a44766c8eda31f4f4fa7ab0091"
5858
),
5959
.target(
6060
name: "AppboyPushStory",

0 commit comments

Comments
 (0)