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 route custom ringtone audio to speaker? #536

Open
bennnjamin opened this issue May 30, 2023 · 0 comments
Open

How to route custom ringtone audio to speaker? #536

bennnjamin opened this issue May 30, 2023 · 0 comments

Comments

@bennnjamin
Copy link

I saw a similar comment about this here but no solution twilio/twilio-voice-ios#85 (comment).

Simply calling toggleAudioRoute(toSpeaker: true doesn't do anything during ringing with a custom ringtone. In fact, you get this error:

AVAudioSession setAggregatedIOPreference:error: Error Domain=NSOSStatusErrorDomain Code=560030580 "Operation not permitted while session has running audio I/Os" UserInfo={NSLocalizedDescription=Operation not permitted while session has running audio I/Os}

What is the correct way to allow the user to activate the speaker while the call is still ringing using a custom ringtone?

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