New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Not getting push notifications when app is closed/killed/background #26856
Comments
I ran into a similar issue, which is the notification doesn't work when the app is not in the background, and it was related to the battery optimization feature on some devices. Found the reason for my issue and not sure if they are the same. Hope it helps 🙂 |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Hi, to receive notification in background helps post message only with "data" and no notification part like this:
I used https://wix.github.io/react-native-notifications/docs/getting-started |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
App receiving push notifications when the app is in foreground and using it , but when app is closed/ killed/in background not receiving the push notifications .
React Native version:
react-native-cli: 2.0.1
react-native: 0.60.5
Steps To Reproduce
1.Here is AndroidManifest.xml:
2. android/app/build.gradle
implementation project(':react-native-push-notification')
3.package.json
4. Sample Coode PushNotificationHandler.js
The text was updated successfully, but these errors were encountered: