Releases: evollu/react-native-fcm
use UNNotificationRequest for iOS
as iOS 10.1 is deprecating old notification reminder, it is good idea to switch the implementation to new API. This will make new feature in the future easy.
BREAKING CHANGE:
ios: The result of getScheduledNotifications
will only contain the notification object you passed when you schedule notification. (now it only returns what was in data
property
OLD:
{
title: 'aaa',
data: {
title:'aaa'
},
action: null
}
NEW:
{
title: 'aaa'
}
bug fixes
add upstream for iOS
thanks to @tolu360
[android] always broadcast before showing local notification
to be inline with iOS.
You can differentiate using opened_from_tray flag
show_in_foreground flag
add show_in_foreground
flag for remote and local notification
(notify the change required in iOS appDelegate.m)
NOTE: this flag won't impact the behavior of Android Firebase remote notification (banner won't show up if app is in foreground)
flash flag and upstream message for android
fix android null point issue
prevent #137 from crashing. return null if currentActivity is null
ios SDK 3.6.0 and iOS 10 support
updated readme guide for iOS setup
fixed issue where initial notification not set correctly in iOS 10
fixed push notification registration for iOS 10
BREAKING CHANGE:
FCM.on('localNotification'
is deprecated. all notification will go into FCM.on('notification'
and local notification will have a flag local_notification
;
xcode 8 is required
bug fix
android scheduled notification fix
- if android app is in foreground, notification will not show.
FCM.on('localNotification'
with be triggered immediately. This is to mimic the behavior of iOS local notification. - merge pull #81