user836026
user836026

Reputation: 11340

GCM notification is not received when App is not running

i'v implemented GCM and it works fine except one issue.

if application works in foreground or background notification are consumed by application. However, if notification received while application is killed. Than notification only shown in top bar. But application cant find it even when user launch app.

I notice when message is recived after rebooting device, message is shown ony on message center, but its not found by application. Than, after application started, than, it start to receive messages.

Upvotes: 0

Views: 1268

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006549

Than notification only shown in top bar.

You put that Notification there yourself. GCM does not display a Notification on its own.

But application cant find it even when user launch app.

The application "found" it to display the Notification.

Upvotes: 1

Related Questions