This repository has been archived by the owner on Jul 28, 2022. It is now read-only.
v7.0.0-rc.0
Pre-release
Pre-release
This is a pre-release for the next minor version of @bam.tech/react-native-batch. The documentation hosted on GitHub has not been updated as this is still a pre-release.
- Migrated to Batch SDK v1.18
- For iOS:
- [BREAKING] Make sure to update your Podfile Batch SDK version
- [BREAKING] Batch requires Xcode 13 or higher
- For iOS:
- Add
BatchEventData.putURL
- Add
BatchUserEditor.setURLAttribute
- Add
BatchEventData.putDate(timestamp)
(BatchUserEditor.setDateAttribute
already exists) - Add
BatchMessaging.addListener
andBatchPush.addListener
to listen for messaging and push notifications events- see documentation for iOS event dispatchers and Android event dispatchers to see platform differences
- Add new methods to replace deprecated
BatchPush.registerForRemoteNotifications
:- to request iOS permission
BatchPush.requestNotificationAuthorization
andBatchPush.requestProvisionalNotificationAuthorization
(to be called when you want to ask user for the permission) - to synchronize the token with Batch
BatchPush.refreshToken
(to be called at each app launch after opt-in if you're opted out by default)
- to request iOS permission
Full Changelog: v6.0.2...v7.0.0-rc.0