iOS background location service problem

ljunokas9 years ago

Hi,

I dont know if anyone is experiencing the same problem. I've downloaded traccar client from github. Everything works when app is active, when i push home button, location service is not active anymore.

Does anyone knw the solution for this?

Anton Tananaev9 years ago

Make sure "Background App Refresh" is enabled in the settings.

ljunokas9 years ago

If you mean the option in capabilities options, where is background modes and Location updates - both are turned on. If these are not what you have in mind, please advise.

Anton Tananaev9 years ago

I don't really know what else can it be. You can try to get system logs from the device to see if it has any useful information.

ljunokas9 years ago

solved. you need to add this line of code:
_locationManager.allowsBackgroundLocationUpdates = YES;

Anton Tananaev9 years ago

Looks like they changed API again in iOS 9.

Lluis7 years ago

Traccar client stop sending data when somebody close the app, but in preferences seems that all is correct. Traccar has "always" permission to use the gps.
What can I do?

Anton Tananaev7 years ago

Wait for the next version. There will be some improvements in the next release.