Purpose Of Wakelock In Modern Android?
I'm having a hard time understanding the purpose of WakeLock in modern versions of Android, after the introduction of Doze and Foreground Services. It appears as if WakeLocks are p
Solution 1:
Foreground services still don't keep the CPU awake - for that you still need a wakelock. Cases like ongoing media playback would need both a foreground service (to keep the process alive and to allow wakelocks while the rest of the system is dozing) and a wakelock itself (to keep the actually media playback happening).
Post a Comment for "Purpose Of Wakelock In Modern Android?"