简体   繁体   中英

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM