I have an app where I'm using this library to handle incoming push notifications.
When the app is in the foreground on iOS devices, my AppDelegate's willPresentNotification method is called twice. The first time, it is called with the complete data in UNNotification (I send custom data through Firebase Messaging). However, the second time it is called, it only contains the notification subject and body, without the custom data I sent.
Any help would be appreciated. Im trying to understand why Im getting this behavior. Normally, my AppDelegate method should only be called once, and right after the push notification should appear. But this is not what's happening.
I have an app where I'm using this library to handle incoming push notifications.
When the app is in the foreground on iOS devices, my AppDelegate's willPresentNotification method is called twice. The first time, it is called with the complete data in UNNotification (I send custom data through Firebase Messaging). However, the second time it is called, it only contains the notification subject and body, without the custom data I sent.
I'm unsure why my AppDelegate's willPresentNotification method is being called twice. Also, when it is called the second time, the following method is called https://github.com/react-native-push-notification/ios/blob/4979f60887256af40791ad9fb427e26c7ce08128/ios/RCTConvert%2BNotification.m#L111 Who is calling this [RCTConvert UNNotificationRequest]? I dont seem to find it in this lib.
here is my AppDelegate:
Any help would be appreciated. Im trying to understand why Im getting this behavior. Normally, my AppDelegate method should only be called once, and right after the push notification should appear. But this is not what's happening.