Wednesday, April 24, 2013

Re: [android-developers] Task Killing apps kill my service. How can I avoid it?


On Wed, Apr 24, 2013 at 2:41 AM, Piren <gpiren@gmail.com> wrote:
Actually Push notifications will not work if he Force Closes the app, since they stop functioning at that point...

I'm no expert on push notifications, but my understanding was that the device receives the push notification then sends out a broadcast that can be handled by your app, which will be started if need be.

http://developer.android.com/google/gcm/gs.html

Section 4.

"This broadcast receiver is responsible for handling the 2 intents that can be sent by GCM (com.google.android.c2dm.intent.RECEIVE and com.google.android.c2dm.intent.REGISTRATION) and should be defined in the manifest (rather than programmatically) so that these intents can be received even if the application is not running."

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment