BIND_TELECOM_CONNECTION_SERVICE permission error with RNCallKeep
See original GitHub issueI am trying to use RNCallKeep by testing it first. I am getting “BIND_TELECOM_CONNECTION_SERVICE permission” error when I am trying to call RNCallKeep.setup:
componentDidMount() {
const options = {
ios: {
appName: 'Video Call',
},
android: {
alertTitle: 'Permissions required',
alertDescription: 'This application needs to access your phone accounts for video calls',
cancelButton: 'Cancel',
okButton: 'ok',
},
};
try {
RNCallKeep.setup(options);
} catch (err) {
console.log(err);
}
}
From googling it looks like I have to add the service to androidmanifest. So I added the following service within “application” tag:
<service android:name=".RNCallKeep"
android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE">
<intent-filter>
<action android:name="android.telecom.ConnectionService" />
</intent-filter>
</service>
It is still giving me the error. I have a feeling that I am not setting the “android:name=” class value correct. I have also tried “io.wazo.callkeep”, “io.wazo.callkeep.modules.RNCallKeep”, “io.wazo.callkeep.RNCallKeep”, “com.mycompany.myapp.RNCallKeep”, and none is working. How did you get yours to work? Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top GitHub Comments
Flow the instruction : https://github.com/react-native-webrtc/react-native-callkeep/blob/master/docs/android-installation.md
Just found out that the android:name attribute must be set to “io.wazo.callkeep.VoiceConnectionService”, do not replace “io.wazo.callkeep.VoiceConnectionService” with your own identifier 😄 android:label can be customized
This may be obvious to many, but we spent a few hours trying to understand why it didn’t work.