[英]Will I receive GCM messages if Android kill my app and if I do a Force Close from the settings?
I'm a newbie to Android development and I'm interested in two things which is connected to Google Cloud Messaging. 我是Android开发的新手,我对与Google Cloud Messaging相关的两件事情感兴趣。
1 - yes, but if you install in your manifest a broadcast receiver that listens for the gcm, it will triggered anyway. 1 - 是的,但是如果你在你的清单中安装了一个收听gcm的广播接收器,那么无论如何都会触发它。 What you will do with that event depends on your app.
您将对该活动做些什么取决于您的应用。 A common practice is to start an intent service that handles the message.
通常的做法是启动处理消息的intent服务。 It's up to you to make interact with the activities of your app.
您可以通过应用程序的活动进行交互。
2 - From android 3.1, if the user force closes your app, it will stop to be notified of any broadcast until the user does not start your app again. 2 - 从Android 3.1,如果用户强制关闭您的应用程序,它将停止通知任何广播,直到用户没有再次启动您的应用程序。 Check "Launch controls on stopped applications" here for more details.
有关详细信息,请在此处选中“启动已停止的应用程序的控
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.