react-native-incall-manager icon indicating copy to clipboard operation
react-native-incall-manager copied to clipboard

No audio on iOS because of stopRingtone method

Open codeclouds-team opened this issue 2 years ago • 0 comments

I am implementing a WebRTC calling feature in a react native mobile app, and using this package for in-call management, but facing one issue specifically on iOS when a call is received on iOS devices, the issue is there is no audio on both ends when the call starts, though the VIDEO works absolutely fine. when I commented out the InCallManager.stopRingtone (and so the startRingtone) then AUDIO and VIDEO both started working normally. for reference here is what I am doing on incoming and when answered. when there is an incoming I am calling InCallManager.startRingtone('_BUNDLE_',[1000,800,300,300,300,100,800,800,300,300,300,100,800,800,300,300,300,100,800,800,300,300,300,100]) and when answered

InCallManager.stopRingtone();
InCallManager.start();
InCallManager.setForceSpeakerphoneOn(true);
InCallManager.setKeepScreenOn(true);

however the above code works absolutely fine when call is accepted on ANDROID devices.

codeclouds-team avatar Mar 07 '22 12:03 codeclouds-team