react-native-callkeep
react-native-callkeep copied to clipboard
Always Returning false on RNCallKeep.setup
i always got false retrun on my RNCallKeep.setup, how to fix it?
Here's my code
export const initBgSIPService = () => {
const getNewUUID = () => uuid.v4().toLowerCase();
setup = () => {
const options = {
ios: {
appName: 'ReactNativeWazoDemo',
imageName: 'sim_icon',
supportsVideo: false,
maximumCallGroups: '1',
maximumCallsPerCallGroup: '1',
},
android: {
alertTitle: 'Permissions Required',
alertDescription:
'This application needs to access your phone calling accounts to make calls',
cancelButton: 'Cancel',
okButton: 'ok',
imageName: 'sim_icon',
additionalPermissions: [PermissionsAndroid.PERMISSIONS.READ_CONTACTS],
},
};
RNCallKeep.setup(options).then((data) => {
console.log(data)
RNCallKeep.displayIncomingCall(getNewUUID(), '203');
}).catch((err) => {
console.log(err)
});
RNCallKeep.setAvailable(true); // Only used for Android, see doc above.
};
setup()
// endpoint.addListener('call_received', (call) => {
// // console.log(call);
// const callUUID = getNewUUID();
// RNCallKeep.displayIncomingCall(callUUID, '203');
// });
};
i'm trying to console.log(data) and that's always returning false
same issue for me
How to fix this?
same here, any advice?
im experiencing the same, any solutions/fix for this?
bump
getting this on Android only
Yes , still exists
Still exists
Still exists