Skip to content

Releases: BatchLabs/Batch-React-Native-Plugin

9.0.2

19 Jul 13:24
Compare
Choose a tag to compare

Expo

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

9.0.1

20 Jun 09:46
Compare
Choose a tag to compare

Expo

  • Fixed an issue on iOS where the RNBatch import was not added during the Expo pre-build.

9.0.0

18 Jun 08:53
Compare
Choose a tag to compare

This is a major release, please see our migration guide for more info on how to update your current Batch implementation.

Plugin

  • Updated Batch to 2.0. For more information see the ios and android changelog .
  • Batch requires iOS 13.0 or higher.
  • Batch requires a minSdk level of 21 or higher.

iOS

  • The Batch React-Native plugin now automatically registers its own UNUserNotificationCenterDelegate and forwards it to the previous one if it exists.
    This means you no longer need to add [BatchUNUserNotificationCenterDelegate registerAsDelegate] in your AppDelegate, please delete it.
    It can be disabled by calling BatchBridgeNotificationCenterDelegate.automaticallyRegister = false before [RNBatch start].

Core

  • Added method isOptedOut to checks whether Batch has been opted out from or not.
  • Added method updateAutomaticDataCollection to fine-tune the data you authorize to be tracked by Batch.

User

  • Removed method trackTransaction with no equivalent.
  • Removed method BatchUser.editor and the related class BatchUserEditor, you should now use BatchProfile.editor which return an instance of BatchProfileAttributeEditor.
  • Added method clearInstallationData which allows you to remove the installation data without modifying the current profile.

Event

This version introduced two new types of attribute that can be attached to an event : Array and Object.

  • Removed trackEvent APIs from the user module. You should now use BatchProfile.trackEvent.
  • BatchEventData has been renamed into BatchEventAttributes.
  • Removed addTag API from BatchEventData You should now use the $tags key with put method.
  • Removed parameter label from trackEvent API. You should now use the $label key in BatchEventAttributes with the put(string, string) method.
  • Added support for values of type: Array and Object to the put method.

Profile

Introduced BatchProfile, a new module that enables interacting with profiles. Its functionality replaces most of BatchUser used to do.

  • Added identify API as replacement of BatchUser.editor().setIdentifier.
  • Added editor method to get a new instance of a BatchProfileAttributeEditor as replacement of BatchUserEditor.
  • Added trackEvent API as replacement of the BatchUser.trackEvent methods.
  • Added trackLocation API as replacement of the BatchUser.trackLocation method.

Expo

  • Added configuration field enableDefaultOptOut to control whether Batch is opted out from by default. (default: false)
  • Added configuration fields enableProfileCustomIDMigration and enableProfileCustomDataMigration to control whether Batch should trigger the profile migrations (default: true).

8.2.0

23 Jan 15:03
Compare
Choose a tag to compare

Plugin

  • Updated Batch 1.21.
  • Batch requires iOS 12.0 or higher.
  • Batch now compiles with and targets SDK 34 (Android 14).
  • Added support for react-native 0.73+
  • Added support for Expo 50.
  • Fixed an issue on iOS where refreshToken was not running on main thread.

User

  • Removed automatic collection of the advertising id. You need to collect it from your side and pass it to Batch via the added BatchUser.editor().setAttributionIdentifier(id) method.
  • Added setEmail method to BatchUserEditor. This requires to have a user identifier registered or to call the setIdentifier method on the editor instance beforehand.
  • Added setEmailMarketingSubscriptionState method to BatchUserEditor.

Inbox

  • Added hasLandingMessage property to IInboxNotification.
  • Added displayNotificationLandingMessage method to BatchInboxFetcher.

8.1.2

13 Oct 09:14
Compare
Choose a tag to compare

Plugin

  • Fixed an issue on Android where open push message events queued on cold start were sent before we could register a listener.

8.1.1

13 Oct 09:13
Compare
Choose a tag to compare

Plugin

  • Fixed an issue where listening for open push message events wasn't working on cold start.

8.1.0

31 Aug 13:11
Compare
Choose a tag to compare

Plugin

  • Plugin now compiles with and targets SDK 33 (Android 13).

Push

  • Added a new API: BatchPush.requestNotificationAuthorization(). This allows you to request for the new notification permission introduced in Android 13. See the documentation for more info.

8.0.2

08 Aug 15:47
Compare
Choose a tag to compare

Plugin

  • Batch requires Xcode 13.3.1
  • Fixed autolinking on react-native 0.69+ and Expo 46

8.0.1

27 Jul 15:06
Compare
Choose a tag to compare

Plugin

  • Updated Batch 1.19. Batch requires Xcode 13.3.1 and iOS 10.0 or higher.
  • Updated how Batch is imported to support React-Native v0.68 wich now uses Objective-C++.
  • Added support for Expo 45

User

  • Added getters for identifier, language, region, attributes and tagCollections in BatchUser.
  • Added a fix where you couldn't use setLanguage or setRegion with a nil value on iOS.

8.0.0

27 Jul 15:06
Compare
Choose a tag to compare

Plugin

  • Updated Batch 1.19. Batch requires Xcode 13.3.1 and iOS 10.0 or higher.
  • Updated how Batch is imported to support React-Native v0.68 wich now uses Objective-C++.
  • Added support for Expo 45

User

  • Added getters for identifier, language, region, attributes and tagCollections in BatchUser.
  • Added a fix where you couldn't use setLanguage or setRegion with a nil value on iOS.