【iOS初学】1. 配置及资料
2021-03-26 本文已影响0人
Lady_Lee
蓝牙权限配置
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