Android Permissions
You can check here about what are the permissions needed for chats and calls. Open the file app/src/main/AndroidManifest.xml, and add the following code in outside the <application> tag.
Add device permissions for access the application#
Add runtime permissions for calls#
For audio calls, we need below permissions:
You can use the below method to check audio call permissions:
- Java
- Kotlin
For video call, we need below permissions:
You can use the below method to check video call permissions:
- Java
- Kotlin
From
Android 12, ensure thatandroid.permission.BLUETOOTH_CONNECTandandroid.permission.READ_PHONE_STATEruntime permissions are granted for your app for seameless audio routing and gsm call handling. If theandroid.permission.BLUETOOTH_CONNECTpermission is not granted, call audio will not be routed to BT Headset even though it is connected. If theandroid.permission.READ_PHONE_STATEpermission is not granted, gsm call related functionalities will not work in sdk.
From Android 13, CallSDK need below permission to show ongoing call notification.
You can use the below method to check call notification permission:
- Java
- Kotlin
Add runtime permissions for chat#
To choose contact, we need below permissions:
You can use the below code to check runtime permission for contact:
- Java
- Kotlin
To choose media such as image, video, audio and documents, we need below permissions:
From Android 13, To choose media such as image, video, audio and documents, we need below permissions:
To choose Location , below permissions should be added.
From Android 13,To receive notification message, we need below permissions: