开发者

Android C2DM working if the task is killed

开发者 https://www.devze.com 2023-03-22 07:27 出处:网络
If a server tries to send a cloud message to a device, but the task is killed somehow (such as开发者_Python百科 advanced task killer), will the message be shown?Yes.You should be using a BroadcastRece

If a server tries to send a cloud message to a device, but the task is killed somehow (such as开发者_Python百科 advanced task killer), will the message be shown?


Yes. You should be using a BroadcastReceiver that is registered in your manifest to receive the C2DM message broadcasts meant for your application when they hit the device. The messages are sent over a connection that is maintained by Google services and, thus, is independent of whether your app is already running.

0

精彩评论

暂无评论...
验证码 换一张
取 消