Releases: evollu/react-native-fcm
Releases · evollu/react-native-fcm
change buildtool version to 25
this is a side branch that allow users to use with buildtool v25
will merge to main branched once react-native team upgrade their default version
bug fix
add _actionIdentifier
- add action_identifier from iOS aps into _actionIdentifier #328
- fix iOS filename typo
fix iOS9 local notification callback
v6.0.3 Update README.md
fix notification callback return empty
v6.0.2 Update package.json
completionHandler
BREAKING CHANGES for all iOS users:
- iOS appDelegate.m integration changed, check readme
- FCM.on('notification') is changed, use FCM.on(FCMEvent.Notification)
- FCM.on('refreshToken') is changed, use FCM.on(FCMEvent.RefreshToken)
Detail:
call iOS completionHandler after javascript code finishes rather than immediately. callback takes async functions.
use constants instead of string (like 'notification' or 'refreshToken') to avoid typo etc.
better cocoapod support
#278
Potential breaking change for people for using cocoapod or framework
fix FCM not connected on first load for ios
v4.0.2 Update package.json
fix large_icon android
use .remove() for unsubscribing
#263 use .remove() for unsubscribing so we are inline with RN's api convension. sorry for the breaking changes
now you need to do this:
this.refreshTokenListener = FCM.on('refreshToken', (token) => {})
this.notificationListener = FCM.on('notification', (notif)=>{})
componentWillUnmount() {
// stop listening for events
this.notificationListener.remove();
this.refreshTokenListener.remove();
}