Reputation: 4908
The Push Notifications are received fine when the App is closed by navigating back or when closed from Recent Apps.
But when the App is force-stopped from Settings, then the App doesn't receive the Push Notifications. I don't know if it is a limitation of the platform or I'm missing something.
How to change the App to receive Push Notification even if force-stopped?
Upvotes: 1
Views: 1094
Reputation: 2657
Read this post please! It's possible that you uses a simple broadcast receiver then broadcast receiver don't guarantee the service is working always finally if you want to have service works all time you need to use WakefulBroadcastReceiver class.
-- Edited 2 hours later --
This is not limitation from WakefulBroadcastReceiver class, then you're missing something because WakefulBroadcastReceiver class it's prepared for this situations. If I force to close my app this one can receive notifications from the GCM in my case... Then I have a few questions...
Tell me if I helped you and good programming!
Upvotes: 1