Breaking changes
- (Android) Channel Management: In order to limit the scope of responsability of this library, developers are now responsible of the creation of the channels. You can find the documentation at https://github.com/zo0r/react-native-push-notification#channel-management-android. These changes are also made to allow improvements in the future of the library. Here the list of impacts:
- You must create your channels before triggering a notification.
- These entries in
AndroidManifest
are deprecated:
<meta-data android:name="com.dieam.reactnativepushnotification.notification_channel_name" android:value="..."/> <meta-data android:name="com.dieam.reactnativepushnotification.notification_channel_description" android:value="..."/> <meta-data android:name="com.dieam.reactnativepushnotification.channel_create_default" android:value="..."/>
- Followings options changed on Android in
localNotification
andlocalNotificationSchedule
:channelId
becomes mandatory (warning if not provided)channelName
is deprecatedchannelDescription
is deprecatedimportance
is deprecated
- These changes help to avoid an issue #1649
- (Android) Remove check for the intent
BOOT_COMPLETED
, this should allow more intent action such asQUICKBOOT_POWERON
. It's recommended to updateAndroidManifest
, theRNPushNotificationBootEventReceiver
to:<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="android.intent.action.QUICKBOOT_POWERON" /> <action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/> </intent-filter> </receiver>
@react-native-community/push-notification-ios
is now apeerDependency
, please make sure that you installed this library with NPM or YARN.- (Android) Fix a bug where notification data are not inside
data
property after been pressed by user. When sending notification + data and app in background. - (Android) Add more fields from the firebase notification part. (Thanks to @fattomhk with this PR #1626)
notificationPriority
image
tag
visibility
- (Android)
data.twi_body
is no more used to trigger a notification in notification-center. Revert of #744
Fixed
- (iOS) upgrade
@react-native-community/push-notification-ios
, fixe the value ofuserInteraction
@react-native-community/push-notification-ios#122.