This message was deleted.
# helpdesk
s
This message was deleted.
👀 1
f
Can you tell me which livekit sdk version you are using, https://github.com/flutter-webrtc/flutter-webrtc/pull/1349 There is an enumeration fix for bluetooth devices here. but you need to add
Copy code
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
   <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />
In order to get the correct name of the Bluetooth device.
https://github.com/livekit/client-sdk-flutter/tree/main#android
Copy code
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
You can try to add the permission label above, and use the code here to apply for bluetoothConnect permission, then you should be able to get the correct bluetooth device label.
Copy code
import 'package:permission_handler/permission_handler.dart';

Future<void> _checkPremissions() async {
  var status = await Permission.bluetooth.request();
  if (status.isPermanentlyDenied) {
    print('Bluetooth Permission disabled');
  }
  status = await Permission.bluetoothConnect.request();
  if (status.isPermanentlyDenied) {
    print('Bluetooth Connect Permission disabled');
  }
}

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await _checkPremissions();
  runApp(MyApp());
}