Skip to content

Releases: evollu/react-native-fcm

change buildtool version to 25

24 Mar 13:42
Compare
Choose a tag to compare

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

24 Mar 13:41
Compare
Choose a tag to compare

add _actionIdentifier

24 Feb 16:13
Compare
Choose a tag to compare
  • add action_identifier from iOS aps into _actionIdentifier #328
  • fix iOS filename typo

fix iOS9 local notification callback

13 Feb 14:48
Compare
Choose a tag to compare
v6.0.3

Update README.md

fix notification callback return empty

31 Jan 14:17
Compare
Choose a tag to compare
v6.0.2

Update package.json

completionHandler

29 Jan 22:21
Compare
Choose a tag to compare

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

23 Jan 19:59
Compare
Choose a tag to compare

#278
Potential breaking change for people for using cocoapod or framework

fix FCM not connected on first load for ios

20 Jan 19:24
Compare
Choose a tag to compare
v4.0.2

Update package.json

fix large_icon android

13 Jan 14:25
Compare
Choose a tag to compare

use .remove() for unsubscribing

06 Jan 21:17
Compare
Choose a tag to compare

#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();
}