[英]Add description to Permission modal alert
如何指定应用程序请求访问该位置的原因? 我想澄清在权限模式警报中使用位置。
Open your plist with source code, and add below
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Message for Always and when used desc</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Message for Always used desc</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Message for when used desc</string>
对于iOS设备,您需要直接在NSLocationWhenInUseUsageDescription
的Info.plist文件中指定NSLocationAlwaysUsageDescription
或NSLocationWhenInUseUsageDescription
。 之后iOS将自动管理以在警报中显示您指定的消息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.