更新ios蓝牙权限
This commit is contained in:
@@ -206,7 +206,7 @@ Future<Map> checkBlueToothPermissin() async {
|
||||
|
||||
if (Platform.isIOS) {
|
||||
PermissionStatus isBleGranted = await Permission.bluetooth.request();
|
||||
if (isBleGranted.isGranted) {
|
||||
if (!isBleGranted.isGranted) {
|
||||
// startBluetoothScanning();
|
||||
await FlutterBluePlus.startScan(timeout: Duration(seconds: 10));
|
||||
data = {
|
||||
|
||||
Reference in New Issue
Block a user