This repository was archived by the owner on Jul 28, 2022. It is now read-only.
v6.1.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.
- 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)
- Note that currently (Batch 1.17), notification_open for Android has a problem on the Batch Android SDK, waiting for a fix. You can still use notification_display although the user might not have clicked on it
- 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...v6.1.0-rc.0