Keeping the app in background mode for continuos location updates

帅比萌擦擦* 提交于 2019-12-06 13:32:50

First, have you studied "Getting Location Events in the Background" in the Location and Maps Programming Guide?

Have you checked backgroundRefreshStatus? Is this app allowed to run in the background according to it?

What is the value of pausesLocationUpdatesAutomatically?

What accuracy are you requesting? Are you moving sufficiently to generate changes over that accuracy?

Did you call startUpdatingLocation?

Is this iOS 6 or 7? If iOS 7, make sure to watch Session 204: "What’s New with Multitasking?" There have been several changes and iOS is now more aggressive about shutting down apps than it was previously.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!