react-native-push-notification
Advanced tools
Changelog
[5.0.0] 2020-08-03
.popInitialNotification(callback)
now return the same format as onNotification()
.popInitialNotification
in configure()
now trigger only once on app startup, same as iOS.notification.foreground
now return the good value, before the value was false
most of the time.createChannel
for custom Android channel support #1509messageId
to enable integration with react-native-firebase/messaging
#1510onlyAlertOnce
property #1519popInitialNotification
in configure()
now trigger only once and do not trigger twice onNotification()
when user press the notification, more details: #1516.notification.foreground
now return the good value, before the value was false
most of the time.Changelog
[4.0.0] 2020-07-06
RNPushNotificationRegistrationService
has been removed, old reference in AndroidManifest must be removed.Notifications.registerNotificationActions()
has been removed and is not required for actions
.DeviceEventEmitter.addListener('notificationActionReceived', callback)
is replaced by onAction
. <receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationActions" />
userInfo
is now populated with id by default to allow operation based on id
.actions
accept an array of strings.invokeApp
allow you to handle actions in background without invoking the application.onAction
has been added to .configure()
to handle action in background.PushNotification.invokeApp(notification)
allow you to invoke the application when in background (notification for initial notification).PushNotification.getChannels(callback)
allow you to get the list of channels.PushNotification.channelExists(channel_id, callback)
allow you to check of a channel exists.PushNotification.channelBlocked(channel_id, callback)
allow you to check of a channel is blocked. Based on #1249PushNotification.deleteChannel(channel_id)
allow you to delete a channel.largeIconUrl
to load a largeIcon based on Url. Based on #1444bigPictureUrl
to load a picture based on Url. Based on #1444shortcutId
for better badges management.showWhen
to display "when" it was published, default: true.groupSummary
to allow grouping notifications. Based on #1253channelId
, custom channel_id in android. Based on #1159channelName
, custom channel_name in android.channelDescription
, custom channel_description in android.push-notification-ios
in version > 1.2.0
#1345onRegistrationError
has been added to .configure()
to handle registrationError
events..configure()
Changelog
[3.5.2] - 2020-05-25
Changelog
[3.4.0] - 2020-05-08
onRegister
when Firebase renew token.AndroidManifest.xml
to allow/remove notification in foreground. <meta-data android:name="com.dieam.reactnativepushnotification.notification_foreground"
android:value="false"/>
Changelog
[3.3.1] - 2020-05-01