Skip to content

Releases: BatchLabs/Batch-React-Native-Plugin

12.1.0

08 Dec 09:36

Choose a tag to compare

Inbox

  • Added androidCustomLargeIcon property to IInboxNotification.
  • Added androidBigPicture property to IInboxNotification.
  • Added deeplink property to IInboxNotification.

12.0.0

07 Nov 15:37

Choose a tag to compare

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.js only exists for Batch, delete it or remove the @batch.com/react-native-plugin entry.

Android

  • The plugin is no longer auto-initialized. You should now call RNBatchModule.initialize(application) from MainApplication.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_state to the section of your AndroidManifest.

11.1.0

21 Oct 15:25

Choose a tag to compare

Expo

  • Added configuration field shouldUseNonNullableIntent to control whether the MainActivity's onNewIntent method 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 to false (nullable Intent) for backwards compatibility. Set it to true if you're using AndroidX Activity 1.9 or higher.

11.0.0

19 Sep 12:44

Choose a tag to compare

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 setShowNotifications method to control whether android push notifications should be displayed.
  • Added shouldShowNotifications method to check current android notification display settings.
  • Removed AndroidNotificationTypes enum and related method setNotificationTypes. You should now use setShowNotifications to control whether Batch should display notifications or not. Note that Batch still preserves your previous values and shouldShowNotifications will 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

17 Jul 12:11

Choose a tag to compare

Expo

  • Fixed a build issue on iOS after pre-building with Expo SDK 53.

Messaging

  • Fixed an issue on Android (old arch only) where setFontOverride was not working.

10.1.1

23 May 14:00

Choose a tag to compare

10.1.1

Expo

  • Fixed an issue preventing Expo from pre-building on iOS

10.1.0

18 Apr 13:02

Choose a tag to compare

Plugin

  • Added Swift/Objective-C compatibility. You can now directly import module RNBatchPush into 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

13 Dec 15:53

Choose a tag to compare

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

06 Dec 16:09

Choose a tag to compare

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 use requestNotificationAuthorization to request permission when needed, and requestToken at each app launch.

Profile

  • Added setPhoneNumber API to the BatchProfileAttributeEditor class. This requires to have a user identifier registered or to call the identify method beforehand.
  • Added setSMSMarketingSubscription API to the BatchProfileAttributeEditor class.

Messaging

  • Added messagingCustomPayload property to BatchMessagingEventPayload (only for In-App Message).
  • Added pushPayload property to BatchMessagingEventPayload (only for Landing Mobile).

Inbox

  • Added isSilent property to IInboxNotification.
  • Added setFilterSilentNotifications method to BatchInboxFetcher. Default value is true.
  • ⚠️ BREAKING: body property from IInboxNotification is now nullable since the inbox fetcher may not filter silent notifications.

9.0.2

19 Jul 13:24

Choose a tag to compare

Expo

  • Fixed an issue where Batch could miss the first activity start.