traccar / traccar-client-android

Traccar Client for Android
https://www.traccar.org/client
Apache License 2.0
659 stars 727 forks source link

Location updates not happening after update to 7.2 #458

Closed ingestre closed 10 months ago

ingestre commented 10 months ago

Describe the bug Following the recent update to traccar client (7.2?) location updates are not being sent to the traccar server.

This bug occurs no matter whether WiFi or mobile data is being used. I have tried increasing the accuracy of the reporting to High in the app. No improvement. I also tried clearing the cache for the app. Still not working. I have verified that the traccar server (V5.10 - latest) is accepting osmand connections using a handcrafted CURL command . Devices using the watch protocol are not affected. The App Status screen is showing service started/stopped/networkonline messages, but not location updates.

To Reproduce Steps to reproduce the behavior:

  1. Start the app on Xiaomi Note 8 Pro running MiUI 12 version of Android
  2. Click "Status"
  3. Observe no location updates

Expected behavior I expect location updates to be sent at the frequency defind in the app (every 60 secs)

Server (please complete the following information):

Smartphone (please complete the following information):

Additional context I ensured battery saver was off for this app, and it had the "location" permission

tananaev commented 10 months ago

Have you checked the troubleshooting guide?

ingestre commented 10 months ago

This one? . Yes I did, but based on your steer I looked again and found this setting buried in the MIUI settings

Screenshot_2023-11-22-14-38-06-790_com google android gms

It was turned off. Turning it on made things work.

Closing this issue with the recommendation that the troubleshooting guide be updated with this particular setting (It isn't at the moment as far as I can tell)