You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scheduling local notifications using PushNotificationIOS while RNFirebaseMessaging is present does not work as expected because RNFirebaseMessaging introduces its own RCTConvert category for UILocalNotification. This category declares a class method which accesses notification data using different keys other than those in PushNotificationIOS.
The keys accessed inside details dictionary are different in both implementations and, therefore, makes PushNotificationIOS implementation obsolete unless keys accessed by RNFirebaseMessaging are passed in JS.
@ahmedabadie Thanks for flagging this - Messaging / Notifications are currently being completely rewritten as part of #595 and you'll be pleased to know that the RCTConvert function for UILocalNotification is no more.
Please follow #595 for news on release - we're getting closer!
Issue
Scheduling local notifications using
PushNotificationIOS
whileRNFirebaseMessaging
is present does not work as expected becauseRNFirebaseMessaging
introduces its ownRCTConvert
category forUILocalNotification
. This category declares a class method which accesses notification data using different keys other than those inPushNotificationIOS
.RNFirebaseMessaging RCTConvert category method:
PushNotificationIOS RCTConvert category method:
The keys accessed inside
details
dictionary are different in both implementations and, therefore, makesPushNotificationIOS
implementation obsolete unless keys accessed byRNFirebaseMessaging
are passed in JS.For example, instead of using:
Use:
Environment
The text was updated successfully, but these errors were encountered: