Request runtime permissions
To ensure that your Unity Android application will properly work with the Vivox SDK, you need to request the android.permission.RECORD_AUDIO
and, on Android 12 and later, the android.permission.BLUETOOTH_CONNECT
permissions at runtime. To do this, use the UnityEngine.Android.Permission
structure to verify if the permission is already given and to request the permission before joining a channel.
For more information, see the Unity documentation on how to request runtime permissions.