开发者

Keep timers running in background Apps without location services

开发者 https://www.devze.com 2023-01-15 12:15 出处:网络
Is the开发者_高级运维re a way to keep timers running when an App enters background mode without location services running?

Is the开发者_高级运维re a way to keep timers running when an App enters background mode without location services running?

If I have a timer running in the App with location services on and enter the background then it keeps running. However calling stopUpdatingLocation also stops the timer. I would like the timer to be able to call startUpdatingLocation at some point in the furture but as it not being run it can't do this.

Any information on how multi-tasking works with location services would be helpful.


You should probably figure out when (at what time) the timer would call startUpdatingLocation and add a UILocalNotification at that time.

0

精彩评论

暂无评论...
验证码 换一张
取 消