Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get audio session when connecting voip call on ios #2181

Open
onedoc-kjh opened this issue Jan 15, 2025 · 0 comments
Open

How to get audio session when connecting voip call on ios #2181

onedoc-kjh opened this issue Jan 15, 2025 · 0 comments

Comments

@onedoc-kjh
Copy link

onedoc-kjh commented Jan 15, 2025

Is your feature request related to a problem? Please describe.
We are experiencing delayed audio session activation when initializing the agoraEngine for 1:1 calls after receiving a VoIP call through flutter_callkit_incoming.

When reviewing iOS logs, we found that there's a conflict where our app attempts to start an audio session while the phone app's session is still active:

MXSessionBeginInterruptionFailureLog_SessionCurrentlyActive: Optional(com.apple.TelephonyUtilities) MXSessionBeginInterruptionFailureLog_SessionTryingToGoActive: Optional("appName")

clientName=sid:0x69007, callservicesd(150), 'prim', displayID=com.apple.TelephonyUtilities, category=Ringtone, mode=Default, clientPriority=PhoneCall

clientName=sid:0x6913b, Runner(2822), 'prim', displayID="appName", category=PlayAndRecord_WithBluetooth_DefaultToSpeaker, mode=VoiceChat, clientPriority=Default

hiennguyen92/flutter_callkit_incoming#402 (comment)

Similar to the solution proposed in this comment [link], is there a way to acquire the audio session in our case? We're looking for a way to properly handle the audio session transition from the system phone app to our VoIP call.

[flutter_callkit_incoming]
https://pub.dev/packages/flutter_callkit_incoming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant