Periodic iOS background location updates

前端 未结 9 1442
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 14:56

I\'m writing an application that requires background location updates with high accuracy and low frequency. The solution seems to be a background NSTimer t

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 15:19

    You need to add the location update mode in your application by adding following key in you info.plist.

    UIBackgroundModes
    
        location
    
    

    didUpdateToLocation method will be called (even when your app is in background). You can perform any thing on the bases of this method call

提交回复
热议问题