简体   繁体   English

iOS 11位置许可

[英]iOS 11 Location Permission in

I have an app that need to use "always" as location update. 我有一个应用程序,需要使用“始终”作为位置更新。 However, it is found that after I have upgraded my device to iOS11, the app never ask me for permission. 但是,我发现在将设备升级到iOS11后,应用程序从未向我请求许可。

and then when i go to Privacy > Location > the choices of "always" and "when in use" disappeared. 然后当我转到隐私>位置>时,“总是”和“使用中”的选择消失了。

I have checked it is needed to add "Privacy – Location Always Usage Description" in the plist file. 我已经检查过需要在plist文件中添加“Privacy - Location Always Usage Description”。 I have added, but it is still the same that it cannot track the location. 我添加了,但它仍然是相同的,它无法跟踪位置。

Anythings i have missed to update my code? 我错过了更新我的代码的任何事情?

For iOS 11, there's a new key NSLocationAlwaysAndWhenInUseUsageDescription . 对于iOS 11,有一个新密钥NSLocationAlwaysAndWhenInUseUsageDescription Add this key to Info.plist . 将此密钥添加到Info.plist

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM