My application need to post the location data to my backend. I have set the location permissions to always
and set the pausesLocationUpdatesAutomatically
to false
for CLLocationManager
and need to continue tracking the phones location even when the application is in background or after the phone is restarted.
I'm able to make it work when the application is in background mode. But it stops working when the phone is restarted.
How can I do this?
By the way, I know the