0

I am fetching location in background using

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{

I did set the UIBackgroundModes as location in info.plist, but apple rejected it..

Now I tried to run the app without the UIBackgroundModes property and surprisingly the app runs in background (transmitting location) for more then 5hours...

I know apple suspends the app background thread after 10mins. So is this possible that my app is running without UIBackgroundModes property? OR I m doing something wrong..

4

1 回答 1

0

是的,Manmay,我们已经确定为什么我们在后台模式下使用定位服务。

当您在商店提交申请时。请在您的应用说明中包含以下电池使用免责声明:

“继续使用在后台运行的 GPS 会大大缩短电池寿命。”

当我们需要类似的例子时:-如果我们使用“地理围栏”功能时需要定位服务背景,那么我们必须在后台使用定位服务。

于 2013-10-31T13:41:41.273 回答