PowerManager.PARTIAL_WAKE_LOCK android

The answer by @paha misses an important point : IntentService is not enough. Between onReceive() ends and the IntentService is started the phone might fall asleep again. You need a (static) lock to bridge this gap – this is implemented in Mark Murpphy’s WakefulIntentService

So keep the AlarmManager and receiver but launch a WakefulIntentService from your onReceive().

See:

Leave a Comment