react-native-webrtc / react-native-webrtc/react-native-callkeep
Always Returning false on RNCallKeep.setup
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 511
- Avg merge
- 9h 12m
- Merged PRs (30d)
- 2
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the RNCallKeep.setup(options) call and the iOS and Android options shown in the issue, then compare them with the project's documentation. Reproduce the logged false result on the relevant platform and inspect the existing setup behavior. Done means identifying the cause and documenting a verified correction or expected result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, ios, javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100