Android Permissions
You can check here about what are the permissions needed for 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 callsFor 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_CONNECT
andandroid.permission.READ_PHONE_STATE
runtime permissions are granted for your app for seameless audio routing and gsm call handling. If theandroid.permission.BLUETOOTH_CONNECT
permission is not granted, call audio will not be routed to BT Headset even though it is connected. If theandroid.permission.READ_PHONE_STATE
permission 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
Starting from Android 14
, the CallSDK requires the following permission to display full-screen notifications for incoming and ongoing calls while the device is locked.
You can use the following method to check if the call notification full-screen intent permission is enabled or not.
- Java
- Kotlin