余米开发一个应用程序中,我要跟踪的Background
以及在Foreground
但过一段时间间隔之后LocationUpdate
在Background
应用程序停止更新Location
。当我将它带回Foreground
时,它会再次启动,当我在某段时间后将其放入背景时,它会再次停止。位置管理器停止一些时间后工作在后台
如果可能,我无法找到问题请帮助我。
余米开发一个应用程序中,我要跟踪的Background
以及在Foreground
但过一段时间间隔之后LocationUpdate
在Background
应用程序停止更新Location
。当我将它带回Foreground
时,它会再次启动,当我在某段时间后将其放入背景时,它会再次停止。位置管理器停止一些时间后工作在后台
如果可能,我无法找到问题请帮助我。
您必须指定plist
这里是苹果的文档Getting Location Events in the Background
,这里是一个tutorial for this你的应用程序在后台时需要位置更新。
集所需的精度最好
使用 - (无效)startUpdatingLocation
现在ios6:有
locationManager:didUpdateLocations:
在iOS5中有
locationManager:didUpdateToLocation:fromLocation:
第一交付在后台缓存的位置,并保持你的应用程序睡眠,并与修正的顺序将其唤醒,而iOS5的方法提供了位置的所有的时间。
什么是您想要的精度设置? – AlexWien 2013-03-26 19:02:50
你解决了你的问题吗?原因是什么? ypou如何解决它?你可以回答你自己的问题,这可能会帮助其他人。 – AlexWien 2013-06-06 20:28:21