IOS后台位置信息.plist密钥名

IOS后台位置信息.plist密钥名,ios,core-location,info.plist,Ios,Core Location,Info.plist,在IOS上,当请求位置权限时,一段时间后,系统会向用户提示一个对话框,说应用程序在后台使用该位置的内容或类似的内容 如何更改此对话框的说明? 这是其中之一吗 <key>NSLocationWhenInUseUsageDescription</key> <key>NSLocationAlwaysUsageDescription</key> <key>NSLocationAlwaysAndWhenInUseUsage

在IOS上,当请求位置权限时,一段时间后,系统会向用户提示一个对话框,说
应用程序在后台使用该位置的内容
或类似的内容

如何更改此对话框的说明? 这是其中之一吗

    <key>NSLocationWhenInUseUsageDescription</key>
    <key>NSLocationAlwaysUsageDescription</key>
    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
n不使用时的位置说明
N位置始终使用说明
N位置始终和何时使用说明
n位置始终使用说明
当应用程序在后台运行时,需要此字符串才能获得在iOS 8+上访问位置服务的权限,并应说明应用程序如何使用位置服务。在Info.plist中设置此字符串
NSLocationUsageDescription
此字符串是可选的,但建议在iOS 6&;上使用;7并应说明您的应用程序如何使用位置服务。在Info.plist中设置此字符串
NSLocationWhenUse用途说明
需要此字符串才能获得访问iOS 8+上的位置服务的权限,并应说明您的应用程序如何使用位置服务。在Info.plist中设置此字符串
N位置始终和何时使用说明
需要此字符串才能获得访问iOS 11+上位置服务的权限,并应说明您的应用程序如何使用位置服务。在Info.plist中设置此字符串

请参见和@Honey,这不是很有帮助。如果用户在对话框位置权限中单击“始终允许”,则该对话框将在一段时间后弹出。在第一个对话框中,我向用户写入
请选择“始终允许”
,当背景弹出时,我要写入
请选择“继续”
    <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>