iPhone GPS in background never resumes after pause

后端 未结 3 975
悲哀的现实
悲哀的现实 2020-11-28 08:25

My application needs to track user location changes in the background and works fine as long as user moves around. When user stops and CLLocationManager pauses

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 08:49

    If you can, use startMonitoringSignificantLocationChanges because then (Apple):

    If you start this service and your application is subsequently terminated, the system automatically relaunches the application into the background if a new event arrives.

    You can try combine this with finer-grained tracking once your app wakes up (e.g. user re-enters it).

提交回复
热议问题