question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Always Returning false on RNCallKeep.setup

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:9
  • Comments:7

github_iconTop GitHub Comments

1reaction
dusan-ivancocommented, Jul 4, 2022

bump

0reactions
nyomanyudis95commented, Oct 24, 2022

Yes , still exists

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native CallKeep isCallActive using CXCallObserver
I am unable to understand why is this happening. EDIT: How does hasConnected work? Even though i have accepted the call it always...
Read more >
How to use the react-native-callkeep.setup function in ... - Snyk
To help you get started, we've selected a few react-native-callkeep.setup examples, based on popular ways ... useState(false) const sendRTCMessage = Apollo.
Read more >
wazo-pbx - Bountysource
After installation, I requested calling account permission then enable it. ... displayIncoming Call Not Working, hasPhoneAccount returns false. $ 0.
Read more >
React Native CallKeep utilises a brand new iOS 10 framework ...
Setup. import RNCallKeep from 'react-native-callkeep'; const options = { ios: ... It will return false if the call does not exist or has...
Read more >
reconnect-react-native-callkeep - npm
Setup. import RNCallKeep from 'react-native-callkeep'; ... It will return false if the call does not exist or has not been answered.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found