Skip to content

Conversation

@laurens
Copy link
Contributor

@laurens laurens commented Nov 24, 2025

Completely removing the plugin’s custom avSession setting in favor of usesApplicationAudioSession = false.

https://developer.apple.com/documentation/avfaudio/avspeechsynthesizer/usesapplicationaudiosession

If you set this value to false, the system creates a separate audio session to automatically manage speech, interruptions, and mixing and ducking the speech with other audio sources.

Pull request checklist

Please check if your PR fulfills the following requirements:

  • The changes have been tested successfully.
    • Tested on iOS 18.5
    • Tested on iOS 14.8

@robingenz
Copy link
Member

Thank you! Since this is a breaking change, we have to wait for the next major release which will be the Capacitor 8 release.

@robingenz robingenz added this to the 8.0.0 milestone Nov 24, 2025
@laurens
Copy link
Contributor Author

laurens commented Nov 24, 2025

This might even be a non-breaking fix then, as we are not calling setActive anywhere any longer?

@robingenz
Copy link
Member

Yes, perhaps, but since Capacitor 8 is scheduled for release in December anyway, we can wait.

@laurens
Copy link
Contributor Author

laurens commented Jan 20, 2026

Now that Capacitor 8 is around, what are the next steps (and any help that we can offer?)

@robingenz robingenz changed the title Remove custom AVAudioSession options + activation fix(ios)!: create a separate audio session to automatically manage speech Jan 20, 2026
@robingenz robingenz merged commit 7adcea1 into capacitor-community:master Jan 20, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

bug: Audio playing from other App does not return to full volume after finishing speaking

2 participants