Android TagTime Doze incompatibility


#1

For a while now Android version stops pinging once the device goes into Doze Mode. It’s not something you can whitelist because the issue is the alarm, which is not affected by whitelisting.

It should be a very simple fix, basically just replacing this line in PingService.java

alarum.set(…
with alarum.setAndAllowWhileIdle(…

but I have zero time these days to build and test etc. Obviously I haven’t been using Tagtime either :slight_smile:

Of course this will basically kill most of the power-saving benefit you get from Doze. It will also still register an OFF when the two pings are very close (less than 9 minutes or a bit more)


#2

Oh, so this is what has been happening to my TagTime on my newer phone… I have had to literally put an older phone on volume with only TagTime running there so that I could still get pings…


#3

I’m on Android 7.1.1 on a ZTE Axon 7 and initially I would get OFF tags if the screen was off.
However, MiFavor on the Axon 7 has “power-saving policies” and after turning them off for TagTime I get all the ping notifications.
Not sure if these settings override the “stock” battery settings or something…

@scarabaea, have you tried turning off any battery optimisations for TagTime on your newer phone?


#4

@fwerpers, thanks for your suggestion, I have tried turning off everything I could find, but maybe there are more obscure (for me) settings…


#5

I’m not familiar with MiFavor, but typically none of the Android power settings affect Doze mode (which is the culprit here)- it’s always active.

There is a way to disable Doze by attaching to PC and executing a command, but you would have to do it every reboot.