location-samples icon indicating copy to clipboard operation
location-samples copied to clipboard

Use WakefulBroadcastReceiver instead of IntentService for handling background triggers to the app

Open farmazon3000 opened this issue 10 years ago • 1 comments

I can't understand why you use IntentService for handling all stuff which happens in background.

Please note that device may go asleep (and it actually does go asleep) during IntentService is doing it's job.

Use WakefulBroadcastReceiver for this purpose which then triggers IntentService.

This issue applies to all examples, in particular GeofenceTransitionsIntentService and DetectedActivitiesIntentService.

farmazon3000 avatar Oct 27 '15 12:10 farmazon3000

More about this problem here http://porcupineprogrammer.blogspot.com/2014/02/when-do-you-absolutely-need.html.

farmazon3000 avatar Oct 29 '15 09:10 farmazon3000