GCM push notifications on android 3.1 : disable broadcast receiver

后端 未结 1 765
别那么骄傲
别那么骄傲 2021-01-12 18:40

There is the problem with android push notifications (GCM) on android 3.1 : when my app is CLOSED - broadcast receiver which should handle GCM push messages (Intents) is nev

相关标签:
1条回答
  • 2021-01-12 19:03

    how can i handle push messages (on android 3.1) from GCM via broadcast reciever in situation when application (in which broadcastreceiver is registered) is closed (is in "stopped" state) ?

    You can't. If the user force-stops your app, nothing of your app will run again (on Android 3.1+) unless invoked manually, such as the user launching one of your activities. Your objective is to give the user no reason to force-stop your app.

    0 讨论(0)
提交回复
热议问题