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

Outgoing call without sim-card in Android

Open evd1ser opened this issue 10 months ago • 2 comments

Bug report

When i create outgoing call on my test android without sim he show error "Not registered on network." How i can create call without sim only in wifi-network? i try selfManaged no result The incoming call was created without errors. when the flight mode is on, it asks to turn it off... how can I avoid this if I only make calls via the Internet without using a SIM card?

  • Reproduced on:
  • [x] Android

Description

Steps to Reproduce

Code like example

const displayOutgoingCallNow = () => {
    const number = getRandomNumber()
    const callUUID = getNewUuid();
    addCall(callUUID, number);

    log(`[displayOutgoingCallNow] ${format(callUUID)}, number: ${number}`);


    RNCallKeep.startCall(callUUID, number, number);

    BackgroundTimer.setTimeout(() => {
      log(`[setCurrentCallActive] ${format(callUUID)}, number: ${number}`);
      RNCallKeep.setCurrentCallActive(callUUID);
    }, 1000);
  };

Versions

- Callkeep: 4.3.9-4.3.15
- React Native: 0.75.4
- Android: android 9
- Phone model: samsung galaxy s8
- Phone number is Unknown because it hasn't sim-card

Logs

2024-12-11 10:55:11.970 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] setup : {"okButton":"ok","selfManaged":true,"cancelButton":"Cancel","alertDescription":"This application needs to access your phone accounts","alertTitle":"Permissions required"}
2024-12-11 10:55:11.970 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] setSettings : {"okButton":"ok","selfManaged":true,"cancelButton":"Cancel","alertDescription":"This application needs to access your phone accounts","alertTitle":"Permissions required"}
2024-12-11 10:55:11.973 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] API Version supports self managed, and is enabled in setup
2024-12-11 10:55:11.973 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] setup, adding RECORD_AUDIO in permissions in self managed
2024-12-11 10:55:11.973 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] setSettings : {"okButton":"ok","selfManaged":true,"cancelButton":"Cancel","alertDescription":"This application needs to access your phone accounts","alertTitle":"Permissions required"}
2024-12-11 10:55:11.974 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] registerPhoneAccount
2024-12-11 10:55:12.093 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] registerEvents
2024-12-11 10:55:12.093 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] startObserving, event count: 0
2024-12-11 10:55:12.093 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] startObserving, event count: 0
2024-12-11 10:55:15.836 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] startCall called, uuid: 82468110-e5af-4f4f-b81e-5e37b282ef71, number: 31407, callerName: 31407
2024-12-11 10:55:15.837 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] startCall, uuid: 82468110-e5af-4f4f-b81e-5e37b282ef71
2024-12-11 10:55:17.363 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] setCurrentCallActive, uuid: 82468110-e5af-4f4f-b81e-5e37b282ef71
2024-12-11 10:55:17.363 26494-26894 RNCallKeep              app.com                      W  [RNCallKeepModule] setCurrentCallActive ignored because no connection found, uuid: 82468110-e5af-4f4f-b81e-5e37b282ef71

outgoing call flight mode

evd1ser avatar Dec 11 '24 08:12 evd1ser