react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
745 stars 285 forks source link

Application not launching when launched from remote notification after long time. #378

Open charithreddyv opened 1 year ago

charithreddyv commented 1 year ago

Hai There,

I have observed certain thing on my application, when i send a remote notification when app is terminated from logs i can see it invokes didFinishLaunchingWithOptions, willPresentNotification, initializeReactNativeApp ... also see logs from my App.tsx's useEffect and when i click on the notification after a long (random maybe when os terminated the app again) the app launches but i don't see logs from initializeReactNativeApp nor from App.tsx's useEffect.

In my case just stays on the splash screen forever, when launched via clicking on the app icon it launches fine every time.

i double checked i have all code in my appdelegate as mentioned on the Readme.

Please help me uncover the issue. Thanks in advance 😃 .

UPDATE: after a couple of days observing i found that this happens only when app is sent into background (not terminated) and OS suspends the app, receive a push notification (which launches the app i can see some logs from my app.tsx), and when the app is suspended again after sometime i click on the notification received earlier app just stays on splash screen forever . i also use rect-navigation/native still cornered on whats the cause for this .

remiserougne2017 commented 1 year ago

Hi todos, same problem here. any idea?