Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9.0.0 #8

Merged
merged 30 commits into from
Jun 18, 2024
Merged

9.0.0 #8

merged 30 commits into from
Jun 18, 2024

Conversation

arnaud-roland
Copy link
Contributor

@arnaud-roland arnaud-roland commented May 31, 2024

Batch React-Native 9.0.0

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).

@arnaud-roland arnaud-roland requested a review from abarisain May 31, 2024 14:28
@arnaud-roland arnaud-roland force-pushed the feature/9.0/bump-batch-v2 branch from 0b8156c to 8e0af3a Compare May 31, 2024 14:51
@arnaud-roland arnaud-roland force-pushed the feature/9.0/bump-batch-v2 branch from 8e0af3a to 42373e7 Compare May 31, 2024 14:54
@arnaud-roland arnaud-roland merged commit ee6fb57 into master Jun 18, 2024
2 checks passed
@arnaud-roland arnaud-roland deleted the feature/9.0/bump-batch-v2 branch June 18, 2024 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants