As we were already discussing here, doze mode create devastating effect in delaying notifications.
After a few minutes the device is put in sleep (screen off, not moving, not charging) it enters in doze mode and start a cyclic wake up for a while only during "maintainance windows".
More time the device remain in sleep, more delayed becomes these windows, so it is usual to experiment delays of several minutes in receiving notification when the device is not used.
Question is: can bring to success implementing a foreground service that does nothing but just wake-up the device every couple of minutes for example, to avoid the device enter doze mode ?
Or it is quite sure the OS sooner or later will kill that service ?
After a few minutes the device is put in sleep (screen off, not moving, not charging) it enters in doze mode and start a cyclic wake up for a while only during "maintainance windows".
More time the device remain in sleep, more delayed becomes these windows, so it is usual to experiment delays of several minutes in receiving notification when the device is not used.
Question is: can bring to success implementing a foreground service that does nothing but just wake-up the device every couple of minutes for example, to avoid the device enter doze mode ?
Or it is quite sure the OS sooner or later will kill that service ?