wix / react-native-notifications

React Native Notifications
MIT License
3.25k stars 764 forks source link

Notification press not opening the app when app is in kill state - ANDROID BUG #991

Open MSetnik opened 1 year ago

MSetnik commented 1 year ago

Like the title says,

Notification press not opening the app when app is in kill state. I have followed the documentation and checked it 3 times but it still doesnt work.

"react-native": "0.66.0", "react-native-notifications": "^5.0.0"

pep108 commented 1 year ago

Is this a remote notification or a locally generated one that was scheduled?

Pressing remote notifications opens the app on Android for me, but not local notifications

"react-native": "0.71.8", "react-native-notifications": "^5.0.0"

MSetnik commented 1 year ago

In my case is other way around. Local notification works as expected (app opens on notification press) but remote notif not working

pep108 commented 1 year ago

In my case is other way around. Local notification works as expected (app opens on notification press) but remote notif not working

What I'm doing to get around this right now, since I don't have time, is using @notifee/react-native for local notifications and react-native-notifications for remote. from the docs, it appears notifee works with FCM https://notifee.app/react-native/docs/integrations/fcm so you might try that.

disrae commented 1 year ago

Where is the remote notification sent from? What's setting up display of the notification? In general, it's unclear if the notification is within the scope of this library, the push notification and the code to display it aren't necessarily in this library.

peace4theapes commented 7 months ago

Here's a solution that worked for me: https://github.com/wix/react-native-notifications/issues/939#issuecomment-1502088609

ishwarvouch commented 4 months ago

Hey Pls find this solution https://github.com/wix/react-native-notifications/issues/939#issuecomment-1502088609