如何通过描述获得许可?
How to get permission with a description?
我在一个请求使用蓝牙的许可的应用程序上找到了为什么需要这个的描述。我需要在我的应用程序中实现它。
这个函数怎么命名?如何在 ionic 上做到这一点?
这个 BT 请求必须通过 cordova 插件触发,例如这个 iOS:
https://github.com/swetha-thoomoju/cordova-plugin-ios-bluetooth-permissions
..或者通过编辑 cordova 的 config.xml 来包括:
<config-file parent="NSBluetoothAlwaysUsageDescription" target="*-Info.plist">
<string>Improve location accuracy when finding nearby services</string>
</config-file>
以上仅适用于 iOS,但我很确定 Android 也存在一些内容。
我在一个请求使用蓝牙的许可的应用程序上找到了为什么需要这个的描述。我需要在我的应用程序中实现它。
这个函数怎么命名?如何在 ionic 上做到这一点?
这个 BT 请求必须通过 cordova 插件触发,例如这个 iOS: https://github.com/swetha-thoomoju/cordova-plugin-ios-bluetooth-permissions
..或者通过编辑 cordova 的 config.xml 来包括:
<config-file parent="NSBluetoothAlwaysUsageDescription" target="*-Info.plist">
<string>Improve location accuracy when finding nearby services</string>
</config-file>
以上仅适用于 iOS,但我很确定 Android 也存在一些内容。