[Bugfix] Fix microphone loss during background voice calls on Android 14 #8914
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implemented a microphone access service to ensure uninterrupted microphone usage during voice calls, even when the app is running in the background.
Left photo represent when the call is in the background, and right when the app is open (no change in this case).
Type of change
Content
This pull request fixes a bug where the app loses microphone access when it goes into the background during a voice call. The issue has been resolved by ensuring that microphone access is maintained during background operations and that the microphone service continues running as needed.
Motivation and context
Issue: App loses microphone access when not active on v 1.6.20 #8881
Steps to reproduce:
Expected outcome:
The conversation should continue without interruptions, and the app should maintain access to the microphone even when switching to other apps or locking the phone.
Actual outcome:
The other party cannot hear the user because the app loses access to the microphone, which is indicated by the disappearance of the green dot on Samsung S24 devices.
Operating system: Android 14
App version: Element 1.6.20 (Google Play Store)
Screenshots / GIFs
Tests
Tested devices
Checklist