Open viv578ek opened 3 years ago
It's because you need to activate the audio session in your sip/webrtc library. If you use any variation of react-native-sip-pjsip - then you do it like this:
const endpoint = new Endpoint();
await endpoint.start()
RNCallKeep.addEventListener('didActivateAudioSession', () => {
endpoint.activateAudioSession()
})
RNCallKeep.addEventListener('didReceiveStartCallAction', () => {
endpoint.deactivateAudioSession()
})
Otherwise the client don't know when/if an audio session should start/stop. On iOS, CallKit ensures the call is given priority. But if you never say when the session should start, it will crash your app.
I have setup CallKeep in react native
Description
Steps to Reproduce
Versions
Logs