Skip to content

3.0.0

Choose a tag to compare

@ThomasMengelatte ThomasMengelatte released this 05 Jun 10:24
· 8 commits to master since this release
f8fa9e3

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_ACTOR annotations 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 BatchInAppDelegate protocol and inAppDelegate property on BatchMessaging, in order to handler In-App messages manually.
  • Removed individual close callback methods (batchMessageWasCancelledByAutoclose, batchMessageWasCancelledByUser, batchMessageWasCancelledByUserAction, batchMessageWasCancelledByError). Use the new unified batchMessageDidDisappear:(NSString *_Nullable)messageIdentifier reason:(BatchMessagingCloseReason)reason method.
  • The batchMessageDidTriggerAction delegate method now provides a ctaIdentifier (NSString) instead of the previous actionIndex (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 content from class BatchInAppMessage to mepContent. This method will return nil and contentType property will return BatchMessagingContentTypeUnknown for 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