蓝牙权限配置
Info.plist文件中:
调用 #import <CoreBluetooth/CoreBluetooth.h>后,运行时会提示需要申请蓝牙权限,则在Info.plist的Source code中添加:
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Value</string>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Value</string>
或者Property List中添加:
Privacy - Bluetooth Peripheral Usage Description
Privacy - Bluetooth Always Usage Description
后台运行配置:
Application does not run in background
网友评论