This repository was archived by the owner on Jan 14, 2025. It is now read-only.
4.0.0
Breaking changes
RNPushNotificationRegistrationServicehas been removed, old reference in AndroidManifest must be removed.Notifications.registerNotificationActions()has been removed and is not required foractions.DeviceEventEmitter.addListener('notificationActionReceived', callback)is replaced byonAction.- Extra receiver must be added to manage actions.
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationActions" />
- (iOS)
userInfois now populated with id by default to allow operation based onid.
Features
- (Android)
actionsaccept an array of strings. - (Android)
invokeAppallow you to handle actions in background without invoking the application. - (Android)
onActionhas been added to.configure()to handle action in background. - (Android)
PushNotification.invokeApp(notification)allow you to invoke the application when in background (notification for initial notification). - (Android)
PushNotification.getChannels(callback)allow you to get the list of channels. - (Android)
PushNotification.channelExists(channel_id, callback)allow you to check of a channel exists. - (Android)
PushNotification.channelBlocked(channel_id, callback)allow you to check of a channel is blocked. Based on #1249 - (Android)
PushNotification.deleteChannel(channel_id)allow you to delete a channel. - (Android) Add
largeIconUrlto load a largeIcon based on Url. Based on #1444 - (Android) Add
bigPictureUrlto load a picture based on Url. Based on #1444 - (Android) Add
shortcutIdfor better badges management. - (Android) Add
showWhento display "when" it was published, default: true. - (Android) Add
groupSummaryto allow grouping notifications. Based on #1253 - (Android) Add
channelId, custom channel_id in android. Based on #1159 - (Android) Add
channelName, custom channel_name in android. - (Android) Add
channelDescription, custom channel_description in android. - (iOS) Add fire date in notification response, NOTE:
push-notification-iosin version> 1.2.0#1345 - (iOS)
onRegistrationErrorhas been added to.configure()to handleregistrationErrorevents. - (Android/iOS) Add method getScheduledLocalNotifications()#1466
Fixed
- (Android) Replace java.util.Random with java.security.SecureRandom #1497
- (Android) WAKE_LOCK permission removed from documentation. #1494
- (Android) Some options were ignored on scheduled/repeating notifications (allowWhileIdle, ignoreInForeground).
- (Android/iOS) popInitialInotification might be ignored in
.configure()