Releases: BatchLabs/Batch-React-Native-Plugin
Releases · BatchLabs/Batch-React-Native-Plugin
12.1.0
12.0.0
This is a major release with important breaking changes, please see our migration guide for more info on how to update your current Batch implementation.
Expo
- Removed Expo support from this repository. You should now use our new dedicated Batch-Expo-Plugin.
Core
- Batch requires react-native v0.77 or higher.
- Removed support for the old React Native architecture (Native Module). The plugin is now a pure Turbo Module and requires the new architecture enabled.
- Batch no longer requires a custom React Native CLI configuration. If
react-native.config.jsonly exists for Batch, delete it or remove the@batch.com/react-native-pluginentry.
Android
- The plugin is no longer auto-initialized. You should now call
RNBatchModule.initialize(application)fromMainApplication.onCreate()to complete setup. - The initial state of the "Do Not Disturb" (DnD) feature is no longer read from the Android resources. You should now add a meta-data tag
batch_do_not_disturb_initial_stateto the section of yourAndroidManifest.
11.1.0
Expo
- Added configuration field
shouldUseNonNullableIntentto control whether the MainActivity'sonNewIntentmethod uses a nullable or non-nullable Intent parameter on Android. This is required for compatibility with AndroidX Activity 1.9+ which uses non-nullable Intent types. By default, it is set tofalse(nullable Intent) for backwards compatibility. Set it totrueif you're using AndroidX Activity 1.9 or higher.
11.0.0
Plugin
- Updated Batch to 3.1
- Batch requires iOS 15.0 or higher and Xcode 16.4
- Batch now compiles with SDK 36 (Android 16 'Baklava').
- This is the last version to support the legacy architecture, as React-Native 0.82 no longer allows opting out, and Expo SDK 54 is the final release to include it.
Push
- Added
setShowNotificationsmethod to control whether android push notifications should be displayed. - Added
shouldShowNotificationsmethod to check current android notification display settings. - Removed
AndroidNotificationTypesenum and related methodsetNotificationTypes. You should now usesetShowNotificationsto control whether Batch should display notifications or not. Note that Batch still preserves your previous values andshouldShowNotificationswill reflect them.
Messaging
- Added support for Mobile Landings within the Customer Engagement Platform.
- Added support for In-App Automations within the Customer Engagement Platform.
10.1.2
Expo
- Fixed a build issue on iOS after pre-building with Expo SDK 53.
Messaging
- Fixed an issue on Android (old arch only) where
setFontOverridewas not working.
10.1.1
10.1.1
Expo
- Fixed an issue preventing Expo from pre-building on iOS
10.1.0
Plugin
- Added Swift/Objective-C compatibility. You can now directly import module
RNBatchPushinto your swift files.
Expo
- Added support for Expo SDK 53. Since, as of writing, it is still under preview version, this may not works in future versions.
Core
- Fixed an issue where opting the SDK after been opted-out would unexpectedly reset default configurations, such as Do Not Disturb setting.
10.0.1
Plugin
- Fixed a build issue related to Codegen.
- Batch now publish TypeScript source files since Codegen does not support DTS files for Turbo Module Specifications.
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.
9.0.2
Expo
- Fixed an issue where Batch could miss the first activity start.