iOS 11 deferredLocationUpdatesAvailable始终返回NO,并且Error Domain = kCLErrorDomain Code = 11。如何使deferredlocationupdate工作? [英] iOS 11 deferredLocationUpdatesAvailable always return NO and Error Domain=kCLErrorDomain Code=11. How to make deferredlocationupdates work?

查看:154
本文介绍了iOS 11 deferredLocationUpdatesAvailable始终返回NO,并且Error Domain = kCLErrorDomain Code = 11。如何使deferredlocationupdate工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用allowDeferredLocationUpdates(untilTraveled:timeout :)推迟位置更新。遵循的文档为 https://developer.apple.com/documentation/corelocation/ cllocationmanager / 1620547-allowdeferredlocationupdates

即使尝试了各种将电话与调试器分离的方法,也要使电话保持更长的空闲时间,否则Deferring无法正常工作。请告知是否有人在iOS 11上尝试过此操作。

I am trying to use allowDeferredLocationUpdates(untilTraveled:timeout:) to defer the location updates. The documentation followed is https://developer.apple.com/documentation/corelocation/cllocationmanager/1620547-allowdeferredlocationupdates.
Even though by trying various ways to detach the phone from debugger, keeping phone idle for longer duration the Deferring is not working. Please advice if someone has tried this on iOS 11.

推荐答案

不幸的是,尽管有所有文档,并且经过数周令人沮丧的开发工作,我排除了一个事实,那就是不再支持此功能。我在7种不同的真实设备(iPad和iPhone,5s到7)上的所有可能情况下对其进行了测试……没有成功。

Unfortunatly, despite of all documentation and after weeks of frustrating development effort, I excepted the fact, that this functionality is not supported anymore. I tested it in all possible situations on 7 different real devices (iPads and iPhones, 5s up to 7) ... no success.

它在IOS 9上确实运行良好,这就是为什么我相信我知道该怎么做的原因。但是我尝试了在这里找到的所有提示,否则,...在IOS 10和11下没有成功。

It did work perfectly on IOS 9, this is why I trust, that I know how to do it. But I tried every hint I found here and elsewere... no success under IOS 10 and 11.

如果环顾四周,您会发现其他编码人员的许多愤怒评论。真可惜,但是我们除了事实之外。

If you look around you will find numerous angry comments from other coder. It‘s a shame, but we have to except the facts.

这篇关于iOS 11 deferredLocationUpdatesAvailable始终返回NO,并且Error Domain = kCLErrorDomain Code = 11。如何使deferredlocationupdate工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆