10.0.0
Plugin
- Updated Batch to 2.1
- Batch requires iOS 13.0 or higher.
- Batch requires to compile with SDK 35 (Android 15).
- Added support for React-Native New Architecture Turbo Module. This requires React-Native 0.71+ when running with new architecture enabled, as Codegen and Turbo Module are fully supported. Batch is still backwards compatible with legacy Native Modules.
Expo
- Batch now automatically adds Apple push notification entitlement since it was removed from Expo SDK 51.
Push
- Removed deprecated API
registerForRemoteNotifications. Please userequestNotificationAuthorizationto request permission when needed, andrequestTokenat each app launch.
Profile
- Added
setPhoneNumberAPI to theBatchProfileAttributeEditorclass. This requires to have a user identifier registered or to call theidentifymethod beforehand. - Added
setSMSMarketingSubscriptionAPI to theBatchProfileAttributeEditorclass.
Messaging
- Added
messagingCustomPayloadproperty toBatchMessagingEventPayload(only for In-App Message). - Added
pushPayloadproperty toBatchMessagingEventPayload(only for Landing Mobile).
Inbox
- Added
isSilentproperty toIInboxNotification. - Added
setFilterSilentNotificationsmethod toBatchInboxFetcher. Default value is true. ⚠️ BREAKING:bodyproperty fromIInboxNotificationis now nullable since the inbox fetcher may not filter silent notifications.