Google introduced Doze and App Standby mode with Android 6.0 OS.
Device will enter in Doze mode if device is unplugged and unused for some amount of time and if application stays inactive for some amount of time, that app goes in StandBy mode (Correct me if I am wrong).
- Can we (developer) know, device entered in
Dozemode or application entered inStandBymode? How?
http://developer.android.com/training/monitoring-device-state/doze-standby.html#whitelisting-cases In this link, Google says that Voip or Chat or Calling application will still work when device is in Doze mode.
- How OS will come to know that this is
VoiporchatorCallingapp, so i will keep it awake inDozemode too.?- What callback I need to register to complete maintenance task when application is out of
Dozemode.?