How can I receive notifications from GCM when application is stopped

后端 未结 2 1346
孤街浪徒
孤街浪徒 2020-12-05 11:54

GCMIntentService (extends GCMBaseIntentService) doesn\'t receive notifications if the application is not running.

From : http://developer.android.com/about/versions

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 12:50

    According to Francesco Nerieri in this android-gcm thread:

    So if you force stop the app, the intended behavior for ICS is for the app to not receive the message. In JB this means that GCM will also unregister the app, this is an unfortunate behavior and we are working to change this (the unregister part in JB).

提交回复
热议问题