Repository navigation
3.0.0
This is a major release, please see our migration guide for more info on how update your current Batch implementation.
Compiles with Xcode 16.3
Batch requires Xcode 16.3 and iOS 13.0 or higher
Core
- Added
NS_SWIFT_UI_ACTORannotations on a couple of methods to prevent threading related bugs. While this is a breaking change, most implementations won't notice anything.
Messaging
- Added Mobile Landings with Push v2 which can be created from the CEP composer in the Batch Dashboard.
- Added new
BatchInAppDelegateprotocol andinAppDelegateproperty onBatchMessaging, in order to handler In-App messages manually. - Removed individual close callback methods (
batchMessageWasCancelledByAutoclose,batchMessageWasCancelledByUser,batchMessageWasCancelledByUserAction,batchMessageWasCancelledByError). Use the new unifiedbatchMessageDidDisappear:(NSString *_Nullable)messageIdentifier reason:(BatchMessagingCloseReason)reasonmethod. - The
batchMessageDidTriggerActiondelegate method now provides actaIdentifier(NSString) instead of the previousactionIndex(NSInteger).BatchMessageGlobalActionIndex's type has been changed accordingly. This method is still called on MEP (Mobile Engagement Platform) messages, but you will now receive an identifier built from the old cta index : “mepCtaIndex:” + index. - Renamed property
contentfrom classBatchInAppMessagetomepContent. This method will return nil andcontentTypeproperty will returnBatchMessagingContentTypeUnknownfor messages coming from the CEP (Customer Engagement Platform). - Fixed an issue where dismiss action didn't trigger
batchMessageDidTriggerAction - Fixed a rare issue where Batch could presents a message on a UIAlertController