-
-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After updating the app to a new version, it doesn't provide locations until it's restarted #1851
Comments
Should add the above is 2-issues. The first seems to not configure the locator service properly after an app update. The second (after looking at the code), is the phone not detecting movement. I'll monitor this one a bit more. It had been working flawless on the 2.5.0 to 2.5.2 tags and Android 14.0.0 (AP2A.240805.005, Aug 2024). Phone had updated a couple days ago to 14.0.0 (AP2A.240905.003, Sep 2024) so I'm unsure if the second issue is an OS update, or something else. |
Ok, rolled back to the previous version I had been using for the last month and same issue. This seems to have manifested from the Sept 5, 2024 security patch. If I select "high accuracy" instead of "balance power/accuracy" it works perfectly fine again. That one baffles my brain a bit unless the phone is ignoring wifi for location updates and is only grabbing from cellular movements. For this subsciption: I tried switching it to this to check if the null's were impacting default settings for those parameters: But no change. Any idea what to look at around this (unless Google just borked the last patch they pushed)? |
Yes.
This is entirely possible :) I also wouldn't be surprised if Google treated apps differently depending on their provenance (sideload vs play store - although I have no evidence of that. Have you got the "don't optimize battery" setting set? |
Yes, set to "don't optimize", "pause app" is disabled, etc. This just happened after that last security patch from Google (noted from others using my server side integration as well.) |
I loaded the play store version in parallel of the side load. Need to run a bit more testing to see if there is a delta. Seems to show if you are walking/cycling (lower cadence) than driving where Google seems to switch to GPS regardless. |
Confirmed today that the latest Play Store version or a side loaded APK from tip of master react the same when using "BalancedPowerAccuracy". Others have confirmed the same results. It seems that Google has "done something" in their Sept release of Android 14 that is breaking this operation. Using "HighAccuracy" mode stops it from deep sleeping the OwnTracks app. It shows up clearly when walking since Android never triggers a GPS update for locations (unlike driving). |
Opened a ticket with Google for them to investigate: https://issuetracker.google.com/issues/370069681 |
I've seen back on 2.5.0, but never really put my finger on it. This is what I did:
During the rest of the ride, it seemed decent, but I did get some periods that locations stopped reporting.
Here is an example where it stopped for 18 minutes. Looks like when it's happening,
isDeviceIdleMode=true
is set. Do you know what triggers that? Is that the phone sleeping the app?The text was updated successfully, but these errors were encountered: