yarn react-native-push-notification 4.0.0

latest releases: 8.1.1, 8.1.0, 8.0.1...
4 years ago

Breaking changes

  • 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.
  • Extra receiver must be added to manage actions.
        <receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationActions" />
  • (iOS) userInfo is now populated with id by default to allow operation based on id.

Features

  • (Android) actions accept an array of strings.
  • (Android) invokeApp allow you to handle actions in background without invoking the application.
  • (Android) onAction has 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 largeIconUrl to load a largeIcon based on Url. Based on #1444
  • (Android) Add bigPictureUrl to load a picture based on Url. Based on #1444
  • (Android) Add shortcutId for better badges management.
  • (Android) Add showWhen to display "when" it was published, default: true.
  • (Android) Add groupSummary to 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-ios in version > 1.2.0 #1345
  • (iOS) onRegistrationError has been added to .configure() to handle registrationError events.
  • (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()

Don't miss a new react-native-push-notification release

NewReleases is sending notifications on new releases.