traccar / traccar-client-android

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

Location Services not Showing on Reboot #268

Open jonpaulh opened 7 years ago

jonpaulh commented 7 years ago

Apologies for possible duplication of this issue as I see a few similar posts, but none that seem to match completely.

I currently have 5 android phones of the same make running the traccar hidden app. On a reboot the devices do not appear to send location updates.

When checking the data and location services they are enabled, however although both enabled, only the 3g icon appears along the notifications bar and not the locations services icon. If for example I open google maps the location services symbol appears, however, when minimizing or closing google maps, the icon then disappears.

If I then dial 8722227 it launches the traccar app. The app is running and configured as expected, at the point the app opens, the location services icon appears again in the notifications bar. If i minimize/close the app the location services icon then shows permanently unlike with google maps. At this point the app functions as expected and works perfectly.

It seems the issue for me (this may be specific to the phone I will try and do some testing), but on a reboot, the location services although enabled is not active, without opening the app. I have tried enabling disabling 3g/location services and this does not solve the issue.

When the app works again it sends the location update for that moment, but none of the old data, so it certainly seems the app is not able to access location data until it is opened.

Potentially I could advise when the location services icon is not present, open the app and this will fix the problem, however ideally I need the app hidden so this is not the best option for me.

Please can you advise if you have seen this specific issue before or if you can suggest a possible solution.

Many thanks for a great app.

tananaev commented 7 years ago

What devices are you using? I suspect it's some manufacturer customisation to Android system to save battery life.

jonpaulh commented 7 years ago

Hi Anton, I am using Energy Lite Neo.

I believe I may have seen the issue with another phone I have but cannot be sure without retesting, this phone though is equally as cheap. I believe you are likely correct that the manufacturers have supplied a cheap battery and solved the issue with software and not hardware.

Presumably updating the android version would not wipe the changes from manufacturer, but finding stock firmware might (although presumably the phone could also not work as some changes were necessary)

I will leave with you for the moment, thank you again for a great system.

oliv3 commented 6 years ago

@jonpaulh Which client and Android version are you using ?