Request runtime permissions
Request runtime permissions for microphone access on Android.
Read time 1 minuteLast updated 7 months ago
To ensure that your Unity Android application will properly work with the Vivox SDK, you need to request the and, on Android 12 and later, the permissions at runtime. To do this, use the structure to verify if the permission is already given and to request the permission before joining a channel.
android.permission.RECORD_AUDIOandroid.permission.BLUETOOTH_CONNECTUnityEngine.Android.PermissionFor more information, see the Unity documentation on how to request runtime permissions.