react-native-callkeep icon indicating copy to clipboard operation
react-native-callkeep copied to clipboard

Always Returning false on RNCallKeep.setup

Open subiyantoro opened this issue 3 years ago • 10 comments

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

subiyantoro avatar Feb 24 '21 13:02 subiyantoro

same issue for me

CMLCNL avatar Feb 01 '22 23:02 CMLCNL

How to fix this?

akhil-ga avatar Feb 04 '22 08:02 akhil-ga

same here, any advice?

diegodafm avatar Feb 20 '22 16:02 diegodafm

im experiencing the same, any solutions/fix for this?

dev-apps-code avatar Apr 25 '22 05:04 dev-apps-code

bump

dusan-ivanco avatar Jul 04 '22 12:07 dusan-ivanco

getting this on Android only

frozencap avatar Aug 23 '22 21:08 frozencap

Yes , still exists

nyomanyudis95 avatar Oct 24 '22 09:10 nyomanyudis95

Still exists

gofurnazarov avatar Jan 25 '23 19:01 gofurnazarov

Still exists

iabundis29 avatar Jan 23 '24 04:01 iabundis29