How to get to notification which opens your app
By simple function you can grab the initial notification which opens your application. Of course you have to remember about platform code specific:
const initialNotification = isIOS
? await PushNotificationIOS.getInitialNotification()
: await FCM.getInitialNotification()
And with this data you can react ( ͡° ͜ʖ ͡°) with navigation or fetch function.
Tweet