更新ios蓝牙权限

This commit is contained in:
wyf
2025-08-21 16:35:14 +08:00
parent 5cb59bb5be
commit 841f143f97
7 changed files with 85 additions and 60 deletions

View File

@@ -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 = {