liveUpdate() user location?

Can I integrate Timer along with liveUpdates(_:) in order to manipulate the frequency. Let say for example I need the user location ever 1 min. Is it possible to do so?

The location system will send your app location updates at the rate it does. If you don't want to process any locations in between your 1 minute selected times, you can just ignore it.

We would not recommend to set a timer and stop and start location updates every minute. Not only it will cause undue delays every time the system is trying to power up the GPS unit, you can only run a timer in the foreground, and even if you found a way to run it in the background, if your app were to be terminated within the 1 minute period where the location updates are turned off, you would not be able to start them again and you would be stuck.


Argun Tekant /  DTS Engineer / Core Technologies

liveUpdate() user location?
 
 
Q