question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Don't receive push notification when user kill app (Android & IOS)

See original GitHub issue

Hi @evollu, My app can receive push notifcation on fourground and background. But app don’t receive push notification when user kill app. Can you help me?

"react-native-fcm": "^9.1.0"
"react": "16.0.0-alpha.12"
"react-native": "^0.47.2",
Environment:
  OS:  macOS Sierra 10.12.5
  Node:  8.1.2
  Yarn:  0.24.6
  npm:  5.3.0
  Watchman:  4.7.0
  Xcode:  Xcode 8.3.3 Build version 8E3004b
  Android Studio:  2.3 AI-162.4069837

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:22 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
akash-cpcommented, Nov 6, 2017

Any updates on how to take auto-start permission for phones like xiaomi, asus, etc. in react native ? Or How to list your app in white listed apps?

1reaction
evollucommented, Sep 10, 2017

checked some Chinese forums and looks like it is by design by like xiaomi, asus, oppo, Flyme etc for “better bootup speed and battery life”. They provides their own whitelist activities. more details might be found here https://github.com/ttdevs/KillMe

One simple solution might be adding a Toast to ask users to enable auto start themselves.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I Don't receive push notification when user kill app in "react ...
I'm receiving notification on ios. I'm performing some actions in FCM.on(FCMEvent.Notification, notif => { method. this.notificationListener = FCM.on( ...
Read more >
I don't want to receive notifications when I kill the application in ...
i I have a server that sends notifications with firebase to ios, I can receive notifications in the foreground and in the background,...
Read more >
iOS doesn't receive Push notification when the app is being ...
If the app is being forced quit or not in memory then your app will not receive silent notifications(i.e. Content-available set to 1)....
Read more >
Notifications Not Shown - Mobile Push
When an app is in a Force Stopped / Force Killed state most events including FCM messages for push notifications will not be...
Read more >
Notifications Overview | Android Developers
Users might see notification actions on the device's lock screen. If a given notification action causes an app to launch an activity or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found