IOS microphone disabled on answering the second call (when pressing hold & accept)
Bug report
We are having this issue with multiple call handling in our app, The microphone automatically gets disabled when I press hold&accept on the incoming call screen. We are facing this issue after updating IOS's latest update but works fine on IOS 15.3.1
- Reproduced on:
- [X] iOS
Description
The issue is with incoming calls, The microphone gets disabled when we answer the second incoming call while on a call. Then the audio sessions are totally not working. It enables the microphone when we press the mute button on the Callkit screen.
Steps to Reproduce
Make an incoming call, Press Answer, Make another incoming call from a different extension, Press Hold&Answer
Versions
- Callkeep: 4.3.3
- React Native: 0.66.3
- iOS: 15.5
- Android:
- Phone model: 13 pro
Logs
2022-06-25 16:35:49.795993+0100 MyApp[92312:4452660] [RNCallKeep][reportNewIncomingCall] uuidString = 36108c74-c1a7-4eec-9113-da2673168405
2022-06-25 16:35:49.839986+0100 MyApp[92312:4452660] [[RNCallKeep]] sendEventWithNameWrapper: RNCallKeepDidDisplayIncomingCall, hasListeners : YES
2022-06-25 16:35:54.839509+0100 MyApp[92312:4452660] [RNCallKeep][CXProviderDelegate][provider:performAnswerCallAction]
2022-06-25 16:35:54.839564+0100 MyApp[92312:4452660] [RNCallKeep][configureAudioSession] Activating audio session
2022-06-25 16:35:54.846093+0100 MyApp[92312:4452660] [[RNCallKeep]] sendEventWithNameWrapper: RNCallKeepPerformAnswerCallAction, hasListeners : YES
2022-06-25 16:35:55.476632+0100 MyApp[92312:4452660] [RNCallKeep][CXProviderDelegate][provider:didActivateAudioSession]
2022-06-25 16:35:55.476693+0100 MyApp[92312:4452660] [RNCallKeep][configureAudioSession] Activating audio session
2022-06-25 16:35:55.617150+0100 MyApp[92312:4452660] [[RNCallKeep]] sendEventWithNameWrapper: RNCallKeepDidActivateAudioSession, hasListeners : YES
2022-06-25 16:37:24.808539+0100 MyApp[92312:4452660] [RNCallKeep][reportNewIncomingCall] uuidString = 37041c0a-cf05-42c3-a01f-4f47c27c5182
2022-06-25 16:37:24.826233+0100 MyApp[92312:4452660] [[RNCallKeep]] sendEventWithNameWrapper: RNCallKeepDidDisplayIncomingCall, hasListeners : YES
2022-06-25 16:37:30.896878+0100 MyApp[92312:4452660] [RNCallKeep][CXProviderDelegate][provider:performSetHeldCallAction]
2022-06-25 16:37:30.897049+0100 MyApp[92312:4452660] [[RNCallKeep]] sendEventWithNameWrapper: RNCallKeepDidToggleHoldAction, hasListeners : YES
2022-06-25 16:37:30.897721+0100 MyApp[92312:4452660] [RNCallKeep][CXProviderDelegate][provider:performAnswerCallAction]
2022-06-25 16:37:30.897773+0100 MyApp[92312:4452660] [RNCallKeep][configureAudioSession] Activating audio session
2022-06-25 16:37:31.220091+0100 MyApp[92312:4452660] [[RNCallKeep]] sendEventWithNameWrapper: RNCallKeepPerformAnswerCallAction, hasListeners : YES
2022-06-25 16:37:32.579054+0100 MyApp[92312:4452660] [RNCallKeep][CXProviderDelegate][provider:didDeactivateAudioSession]
2022-06-25 16:37:32.579097+0100 MyApp[92312:4452660] [[RNCallKeep]] sendEventWithNameWrapper: RNCallKeepDidDeactivateAudioSession, hasListeners : YES
2022-06-25 16:37:34.027476+0100 MyApp[92312:4452660] [RNCallKeep][CXProviderDelegate][provider:didActivateAudioSession]
2022-06-25 16:37:34.027837+0100 MyApp[92312:4452660] [RNCallKeep][configureAudioSession] Activating audio session
2022-06-25 16:37:34.124053+0100 MyApp[92312:4452660] [[RNCallKeep]] sendEventWithNameWrapper: RNCallKeepDidActivateAudioSession, hasListeners : YES
Observed same on iOS 13.5 with "react-native-webrtc": "1.92.1", "react-native-callkeep": "4.3.1", "react-native": "0.65.1",
second call does not have audio. turning ON / OFF speaker restores audio.
turn ON/OFF not solved the problem, did u found any solution?
Yes, You should enable fieldTrails to solve this issue
https://github.com/nimbleape/react-native-webrtc/commit/153b51b4fb92e6a42be839582ebedfa1116944b8#diff-36403557b05c09457541ce48633b08cc4c2819dee655d522d427b09f3b8e46b7R63
hi @haisamMH , can u provide the way you handle the call when other call active, i am stucking at hold the call