![](/img/trans.png)
[英]Xcode 9 - Warning on Location usage Description in Info.plist - iOS 11
[英]IOS background location info.plist key name
在IOS上始终要求位置许可时,一段时间后,系统会提示用户一个对话框the app whats to use the location in the background
或类似的the app whats to use the location in the background
。
如何更改此对话框的说明? 是其中之一吗?
<key>NSLocationWhenInUseUsageDescription</key>
<key>NSLocationAlwaysUsageDescription</key>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<key>NSLocationAlwaysUsageDescription</key>
<string>This string is required to gain permission to access location services on iOS 8+ when the app in the background and should describe how your app uses location services. Set this string in the Info.plist</string>
<key>NSLocationUsageDescription</key>
<string>This string is optional but recommended on iOS 6 & 7 and should describe how your app uses location services. Set this string in the Info.plist</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>This string is required to gain permission to access location services on iOS 8+ and should describe how your app uses location services. Set this string in the Info.plist</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>This string is required to gain permission to access location services on iOS 11+ and should describe how your app uses location services. Set this string in the Info.plist</string>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.