wix / react-native-notifications

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

Android dead/killed app not receiving any 'data' notification #865

Closed DaveLomber closed 2 years ago

DaveLomber commented 2 years ago

Followed all the guides,

but when an app is killed and we send 'data' notification, then a Notifications.events().registerNotificationReceivedBackground is not called.

I believe this is expected cause a JS bundle is not leaded yet

but the question is what can be a solution here?

DaveLomber commented 2 years ago

This should be a solution for it https://reactnative.dev/docs/headless-js-android

DaveLomber commented 2 years ago

A proposed solution is here in MR https://github.com/wix/react-native-notifications/pull/870

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] commented 2 years ago

The issue has been closed for inactivity.