title: Does periodic notifications work when device is in sleep
body: <p>I am working with Android API especially Alarms, IntentService and notifications. I am using <code>AlarmManager</code> to schedule a periodic <code>IntentService</code> which might or might not fire notifications.</p>
  
  <p>My questions is What happens when the device is in sleep mode?</p>
  
  <ol>
  <li><p>Alarm will not fire and thus <code>IntentService</code> will not run at all. I am not sure if this will be the case.Will it make a difference if I make it a WakefulIntentService? I believe wake locks are needed to ensure the service keeps running after the BroadCastReciever returns. However, in this case there is no broadcast reciever.</p></li>
  <li><p>Alarm and IntentService will run, but any notification will not have any impact since the device is sleeping. In this case, do I have to explicitly get a wakelock from PowerManager to fire notification ?</p></li>
  </ol>