【问题标题】:IOS background location info.plist key nameIOS后台位置info.plist键名
【发布时间】:2018-06-13 14:31:45
【问题描述】:

在 IOS 上请求位置权限时始终打开,一段时间后系统会向用户提示一个对话框,说 the app whats to use the location in the background 或类似的东西。

如何更改此对话框的描述? 是其中之一吗?

    <key>NSLocationWhenInUseUsageDescription</key>
    <key>NSLocationAlwaysUsageDescription</key>
    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>

【问题讨论】:

标签: ios core-location info.plist


【解决方案1】:
    <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 &amp; 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>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-02-11
    • 1970-01-01
    • 1970-01-01
    • 2013-10-03
    • 1970-01-01
    • 2017-12-16
    相关资源
    最近更新 更多