Page 1 of 1

Activation via GCM instead of permanent service to save battery

Posted: Tue Jul 02, 2019 5:43 pm
by chaoscommander
When I want friends to be able to track me, I need to keep the RTT background service running. It keeps my phone active (as in wakelock, I think) and causes the battery to run out faster, even without GPS being active. How about just waking the app up with a push message, e.g. via GCM, so it can stay asleep when not being watched? Messenger apps like Signal don't keep the phone from sleeping but still receive messages in real time that way.

Re: Activation via GCM instead of permanent service to save battery

Posted: Thu Jul 04, 2019 3:44 pm
by admin
Hi,
Good idea. The good news is it is already available in both the web portal and the app :-). Have a look for Remote control/Remote command.

Re: Activation via GCM instead of permanent service to save battery

Posted: Tue Jul 16, 2019 4:40 pm
by chaoscommander
I found it and it appears to work! That's a well-hidden feature. Why not make it the default for devices that are not set to record a permanent track? Also, this doesn't work for people using the guest URL, only for friends with access to my remote control, right? --Edit: I found the "who can use my remote control" setting.

Concerning battery saving, what is the difference between "no deep sleep during tracking" and "no wake lock"?

Re: Activation via GCM instead of permanent service to save battery

Posted: Fri Jul 19, 2019 1:49 pm
by admin
This is a very technical setting. It determines if the phone should be allowed to go to idle mode even during location updating (no wake load), or if the phone should be allowed to go idle only between the location updates but not during location updating (no deep during tracking). I recommend to leave the default setting. The whole setting is not that relevant anymore because since Google has introduced the Android doze mode it, Android anyway doesn't respect wake lock instructions correctly anymore.

Re: Activation via GCM instead of permanent service to save battery

Posted: Fri Jul 19, 2019 1:50 pm
by admin
This is a very technical setting. It determines if the phone should be allowed to go to idle mode even while location updating (no wake load), or if the phone should be allowed to go idle only between the location updates but not while location updating (no deep sleep during tracking). I recommend to leave the default setting. The whole setting is not that relevant anymore because since Google has introduced the Android doze mode it, Android anyway doesn't follow wake lock instructions correctly anymore.