Hello Exponautes!
We are using react-native-firebase lib to handle our push notifications with the following snippet:
firebase.notifications().getInitialNotification().then(notificationOpen => {
if (notificationOpen) {
this.onInitialNotificationReceived(notificationOpen.notification);
}
});
On Android it works as expected, when we click on the notification, the app starts and the listener received the notificationOpen event.
On iOS the app runs perfectly fine by itself, but when we click on a notification, its an instant crash.
Android app -> start -> OK
Android app stop -> send notification -> click on notification -> OK
iOS app -> start -> OK
iOs app stop -> send notification -> click on notification -> **KO**
We tried to set up a breakpoint on Xcode but ended up nowhere.