Owntracks - Doesn't automatically start tracking after reboot #1095
Replies: 9 comments 13 replies
-
You're not doing anything wrong, this is an Android limitation. OwnTracks doesn't request background location permissions for a number of reasons:
I'm not familiar with what Life360 or HA are doing (although HA seems to request background location) but they'd be subject to the same policies and restrictions as above. That said, the current plan is to include background location permission in the OSS flavour build of the app, which will be distributed on F-Droid. Hopefully, we can get some user feedback about how background location behaves there on real-world devices (after reboots, upgrades etc.) and then take another look at jumping through the necessary hoops to add it to the Google Play Store version. |
Beta Was this translation helpful? Give feedback.
-
@growse They do, but that is not the point of my comment. |
Beta Was this translation helpful? Give feedback.
-
Hi, is there any progress with this. My installs all state that with my version of Android OT needs to be opened first after a reboot in order for it to work. This basically breaks my use of OT, as I have multiple users and automation routines that need to be triggered from their geofenced triggers. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Just tried Tasker (Tasker can be added to the family library too which I will explore later).
I've managed to get tasker to open OT at reboot on a Samsung no less. I would class this as a great workaround.
Not tried getting it to minimise OT yet, but for the most common use case for OT, this is a big step forward, at least for my purposes.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Andrew Rowson ***@***.***>
Sent: Monday, April 11, 2022 5:10:34 PM
To: owntracks/android ***@***.***>
Cc: TundraTamer ***@***.***>; Comment ***@***.***>
Subject: Re: [owntracks/android] Owntracks - Doesn't automatically start tracking after reboot (Discussion #1095)
I'm not sure what sort of progress you're anticipating.
It used to work fine.
Yes, and then Google changed the restrictions on what applications could do without explicit user actions. Grabbing high-precision location is one of them, which is why we can't get high-precision, timely location updates after device bootup without an explicit user interaction.
Can we send a command to OT to get it to activate?
The whole point is that Android requires an explicit user action. By definition, this is not something OT can just do, because then it wouldn't be an explicit user action.
Can we use something like Tasker or IFTTT etc to get it to open at reboot?
It might be worth experimenting to see if Tasker can open the app and then immediately mimimize it. With the right admin-shaped permissions for tasker, this may be enough to convince Android that a human has explicitly opened OT, and therefore start feeding it locations.
—
Reply to this email directly, view it on GitHub<#1095 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AT2E77D5GLM23UN4WWZYCJDVERFHVANCNFSM5FLIQM4Q>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
So far tasker is working. I have a number of devices that reboot daily. At boot tasker opens OT, waits 3 or 4 seconds then triggers 'Go Home'.
This seems to work, although is noticeable by the user.
Tasker needs to be able to draw over apps for this to work.
It's not perfect, as the display must be on. So a short timeout on the display settings could cause OT not to work.
It would be useful if there could be a reportLocation:true command in OT, similar to change_MONITORING, although I don't think this would resolve the display on requirement of getting OT to start.
This does however appear to offer a reasonably good workaround to the Android 11 restrictions. Family sharing Tasker also helps in the cost overhead.
This certainly helps with getting presence detection working again using OT.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Andrew Rowson ***@***.***>
Sent: Saturday, April 16, 2022 1:42:52 PM
To: owntracks/android ***@***.***>
Cc: TundraTamer ***@***.***>; Comment ***@***.***>
Subject: Re: [owntracks/android] Owntracks - Doesn't automatically start tracking after reboot (Discussion #1095)
Great news - if you do manage to get a reliable recipe together, it'd be worth us adding it to the OT booklet to help others out who need a similar thing.
—
Reply to this email directly, view it on GitHub<#1095 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AT2E77FQMCNHOFGHRPZXB3LVFKYUZANCNFSM5FLIQM4Q>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I apologize if this is considered necroposting, and I will start another thread if it is. Does the OSM version start on its own after a reboot? Or does this still require a workaround? |
Beta Was this translation helpful? Give feedback.
-
Hello, Any updates on the topic? I just installed the PlayStore version but it seems that the app doesn't autostart at boot. Any solution so far? Thanks |
Beta Was this translation helpful? Give feedback.
-
I see that this looks like it is fixed in the upcoming 2.5 android app version (for those of us that can't sideload the oss version). Any guesses on when the 2.5 app will be final? |
Beta Was this translation helpful? Give feedback.
-
Happy with whatever comes.
I don't write it so I can't complain. I have a workaround using tasker which seems reliable.
I am happy with whatever 2.5 brings when it arrives. Merry Christmas everyone. Especially the Devs that put in the time that I benefit from. Happy New Year.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Botched1 ***@***.***>
Sent: Friday, December 22, 2023 2:16:54 PM
To: owntracks/android ***@***.***>
Cc: TundraTamer ***@***.***>; Comment ***@***.***>
Subject: Re: [owntracks/android] Owntracks - Doesn't automatically start tracking after reboot (Discussion #1095)
Hilarious. :eye roll:
I'll choose to translate the snark into the much friendlier "we don't publish or give estimates on future releases". Which is fine of course, I was just curious.
Thanks!
—
Reply to this email directly, view it on GitHub<#1095 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AT2E77E4TTGISBL6B3QWRJLYKWI5NAVCNFSM5FLIQM42U5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TOOJSHAZDENQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Whenever the phone is rebooted, Owntracks will stop tracking location. This seems to be due to background location usage not being available.
I get the message "Location Tracking Paused. This version of Android restricts OwnTracks from receiving locations when started in background until the app is opened. Click this notification to open the app and start tracking location"
Once I open Owntracks and then send it back to the "background" it will work fine.
I do not have this issue with Life360 or the Home Assistant companion app, which also do real time location tracking.
The only difference I can see in permissions is that OwnTracks does not have the "Allow all the time" option in Location settings. All the other tracking apps that start properly when the phone reboots have this option, and successfully track real time.
It's a minor annoyance more than a real deal breaker, but I would like to know if there is a way to get OwnTracks to start tracking automatically when the phone boots like other apps can do. Not sure if the issue is my device or just something I am doing wrong :).
Thanks
Beta Was this translation helpful? Give feedback.
All reactions