react-native-webrtc / react-native-webrtc/react-native-callkeep

Always Returning false on RNCallKeep.setup

Open
#372 10 comments 11 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.