Running foreground services doesn's prevent device from going to sleep. You must require a wakelock. Does this also apply in Doze mode?
For example: You run a foreground service and then turn the device's screen off. In general doze's mode restrictions don't apply in foreground services like network suspension etc.
So my question is, do you need to hold a wakelock for foreground services in doze mode?
I am a little bit confuse because doze mode ignores wakelocks unless if puts an exception to foreground services.