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 userequestNotificationAuthorization
to request permission when needed, andrequestToken
at each app launch.
Profile
- Added
setPhoneNumber
API to theBatchProfileAttributeEditor
class. This requires to have a user identifier registered or to call theidentify
method beforehand. - Added
setSMSMarketingSubscription
API to theBatchProfileAttributeEditor
class.
Messaging
- Added
messagingCustomPayload
property toBatchMessagingEventPayload
(only for In-App Message). - Added
pushPayload
property toBatchMessagingEventPayload
(only for Landing Mobile).
Inbox
- Added
isSilent
property toIInboxNotification
. - Added
setFilterSilentNotifications
method toBatchInboxFetcher
. Default value is true. ⚠️ BREAKING:body
property fromIInboxNotification
is now nullable since the inbox fetcher may not filter silent notifications.