This repository was archived by the owner on Jan 14, 2025. It is now read-only.
  
  
  
  
Releases: zo0r/react-native-push-notification
Releases · zo0r/react-native-push-notification
5.1.1
5.1.0
5.0.1
5.0.0
Breaking changes
- (Android/iOS) Unify returned values between iOS and Android #1516.
 - (Android/iOS) 
.popInitialNotification(callback)now return the same format asonNotification(). - (Android) 
popInitialNotificationinconfigure()now trigger only once on app startup, same as iOS. - (Android) 
notification.foregroundnow return the good value, before the value wasfalsemost of the time. 
Features
- (Android) Add function 
createChannelfor custom Android channel support #1509 - (Android) Add Android 
messageIdto enable integration withreact-native-firebase/messaging#1510 - (Android) Add support for 
onlyAlertOnceproperty #1519 - (Android) Allow to change default notification channel name after it's creation #1549
 
Fixed
- (Android) 
popInitialNotificationinconfigure()now trigger only once and do not trigger twiceonNotification()when user press the notification, more details: #1516. - (Android) 
notification.foregroundnow return the good value, before the value wasfalsemost of the time. 
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() 
3.5.2
Fixed
- (Android) Sounds are playing even in Do Not Disturb #1432
 - (Android) onNotification fires every time when the app goes from background to foreground #1455
 - (Android) java.lang.NullPointerException: Attempt to invoke virtual method 'void com.dieam.reactnativepushnotification.modules.d.c(android.os.Bundle)' on a null object reference #1431
 
3.5.1
3.5.0
3.4.0
Features
- (Android) Call 
onRegisterwhen Firebase renew token. - (Android) Added Abandon Permissions method to Android #1425
 - (Android) Add a new key in 
AndroidManifest.xmlto allow/remove notification in foreground. 
        <meta-data  android:name="com.dieam.reactnativepushnotification.notification_foreground"
                    android:value="false"/>