diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 0765164f..1b48b17b 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -11,6 +11,15 @@
+
+
+
+
+
+
+
+
+
=> {
+ const systemVersion = await DeviceInfo.getApiLevel();
+ if (systemVersion <= 28) {
+ return [PermissionsAndroid.PERMISSIONS.BLUETOOTH_CONNECT, PermissionsAndroid.PERMISSIONS.BLUETOOTH_SCAN];
+ }
+ if (systemVersion === 29) {
+ return [PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION];
+ }
+ return [PermissionsAndroid.PERMISSIONS.ACCESS_COARSE_LOCATION];
+};
+
export const videoConfJoin = async (callId: string, cam: boolean) => {
try {
const result = await Services.videoConferenceJoin(callId, cam);
if (result.success) {
if (isAndroid) {
+ const bltPermission = await handleBltPermission();
await PermissionsAndroid.requestMultiple([
PermissionsAndroid.PERMISSIONS.CAMERA,
- PermissionsAndroid.PERMISSIONS.RECORD_AUDIO
+ PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,
+ ...bltPermission
]);
}
const { url, providerName } = result;