[英]NSBluetoothPeripheralUsageDescription isn't being used
I've set the value NSBluetoothPeripheralUsageDescription in my .plist file to add a customized message to the bluetooth enabled alert message. 我在我的.plist文件中设置了值NSBluetoothPeripheralUsageDescription,以便为启用蓝牙的警报消息添加自定义消息。 But its not being used, I just see the standard 'Turn on bluetooth to allow...' However the NSLocationUsageDescription is being used on the location services alert message. 但它没有被使用,我只看到标准'打开蓝牙允许...'但是NSLocationUsageDescription正用于位置服务警报消息。 Any suggestions? 有什么建议? Thanks. 谢谢。
The value for this key is used for a different permission, not just having bluetooth off. 此密钥的值用于不同的权限,而不仅仅是关闭蓝牙。
If your app requests the bluetooth-peripheral
background mode, the system will ask the user for permission. 如果您的应用程序请求bluetooth-peripheral
后台模式,系统将要求用户许可。 The default message displayed to the user is: 显示给用户的默认消息是:
[App Name] would like to make data available to nearby bluetooth devices even when you're not using the app.
The NSBluetoothPeripheralUsageDescription
key allows you to customize the above request for permission. NSBluetoothPeripheralUsageDescription
键允许您自定义上述权限请求。
Check out the "Supporting User Privacy" section in the App Programming Guide for iOS for a bit more info. 有关详细信息,请查看iOS应用编程指南中的“支持用户隐私”部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.