Closed jpamarohorta closed 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
The issue has been closed for inactivity.
@yedidyak Did you figure out what's the issue?
Hello, I have a use case where I need to combine multiple push notifications SDKs (e.g. Oracle & AppsFlyer) and still need to handle the push notification in React Native to show alerts (in foreground) and open a deep link (in background/terminated if the notification is pressed).
I've followed the iOS documentation and I noticed that if
[RNNotifications startMonitorNotifications];
is present in thedidFinishLaunchingWithOptions
method I'm able to get the correct callbacks in React Native (for both foreground and background) but the native methods likedidReceiveRemoteNotification
never run, which stops me from using other push notifications related native SDKs.If I remove
[RNNotifications startMonitorNotifications];
fromdidFinishLaunchingWithOptions
the native callbacks start working again.Is this a bug or an expected behaviour? In the iOS documentation it indicated that the native method
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler
should be implemented.I'm using versions:
Thank you