Reputation: 1
I used GCM for Push notification. In android Oreo, Push is received when app is in foreground & in backgroud. But push is not receiving when app is Killed (remove from recent apps).
I am in need to solve this. How can i solve this ?
Thanks.
Upvotes: 0
Views: 872
Reputation: 13469
As stated in this link, make sure that the message priority is not nested inside android
and should have value "high"
. Additionally, it's possible you are not receiving the message because the device is in Doze Mode or the app is in App Standby Mode. This is explained in the documentation.
Based also from this thread, FCM will stop delivering push messages if app is in stopped state. Since the user intentionally force kills an app, Android assumes the app is not required and its FCM push services are killed as well. This is the normal behaviour of android.
Hope this helps!
Upvotes: 1
Reputation: 417
Make sure you've added this to your manifest file.
<uses-permission android:name="android.permission.WAKE_LOCK" />
Upvotes: 0