element-android icon indicating copy to clipboard operation
element-android copied to clipboard

App looses microphone access when not active on v 1.6.20

Open dmgartung opened this issue 1 year ago • 10 comments

Steps to reproduce

  1. When on a voice call, click Home button or switch to other app

Outcome

What did you expect?

Continue conversation easily without interruptions while switching to other apps or lock the phone.

What happened instead?

Voice call party do not hear you because app looses access to microphone. It is noticeable on Samsung (S24) as green dot in the upper right corner (indicating microphone access) dissappears.

Works perfectly fine on 1.6.18

Your phone model

Samsung S24 Ultra

Operating system version

Android 14

Application version and app store

Element version 1.6.20 I. G Play store

Homeserver

matrix

Will you send logs?

No

Are you willing to provide a PR?

No

dmgartung avatar Aug 09 '24 15:08 dmgartung

I faced the same problem on about 10 new Samsung devices running Android 14

romawkafor avatar Aug 13 '24 17:08 romawkafor

I have the same issue, and I have further information: When I compile Element's code with targetSdk set to 33, the issue does not happen. Probably Google changed something between targetSdk 33 and targetSdk 34, IDK what.

adi-vizgan-unplugged avatar Aug 15 '24 09:08 adi-vizgan-unplugged

I can confirm this on a Pixel 6a using GrapheneOS.

This should be fixed urgently as it keeps me from doing hands-off calls.

throwException avatar Sep 07 '24 18:09 throwException

I confirm this. Element-web:v1.11.75 Synapse:v1.114.0 Android app: 1.6.20 [40106202] (G-fca16b67) (With Google Play)

Reproduced on: Samsung Galaxy S20 (Android 13) Pixel 7 Pro (Android 15)

Does not reproduce on: Xiaomi Mi10T (Android 12)

bro2020 avatar Sep 12 '24 20:09 bro2020

The same problem occurs using Moto G84 and Samsung S21 (Android 14)

aprettij avatar Sep 19 '24 12:09 aprettij

@bmarty Hello. Is there any chance that this bug can be patched? Those who that don't know how to downgrade or use GitHub are basically cant use this app calls. I see there are updates for Element X but not for this client.

dmgartung avatar Sep 20 '24 07:09 dmgartung

I can confirm this is still the case on 1.6.22 [40106222] (G-9a4602bf).

Tested on the OnePlus 7T Pro (A14).

Calls are nearly unusable. Including the fix from PR in the next release would be highly appreciated.

profitrollgame avatar Oct 01 '24 07:10 profitrollgame

This has been an annoyance for quite some time. Whenever browsing to another app or the screensaver kicks in, my microphone is muted. On Element 1.6.22, GrapheneOS build 2024092900 android 14, pixel 6pro.

kirkawolff avatar Oct 05 '24 00:10 kirkawolff

So I tested new released version 1.6.22 and the bug still present in that version.

dmgartung avatar Oct 08 '24 14:10 dmgartung

The changes from this ticket were made a day or two after the 1.6.22 release. They appear to be on an approximate monthly release cycle. I don't see that the PR has been merged yet.

kirkawolff avatar Oct 09 '24 04:10 kirkawolff

When do we get this bug fix in a release?

kirkawolff avatar Nov 06 '24 22:11 kirkawolff

I also face this issue on Samsung s22 mentioned above when switching Apps.

j4mt avatar Nov 07 '24 09:11 j4mt

I can also confirm this problem on Note 20 Ultra 5G (Android 13, Element 1.6.22 [40106222] (G-9a4602bf)) Are there any updates on whether this problem is fixable?

I tested Element X a time ago and found it incomplete and not very usable. Can anyone give a status on how that improved (hopefully)?

jsiit avatar Nov 11 '24 10:11 jsiit

Starting Android 14 you can't record audio if the app is in background unless you use a foreground service with at least microphone type.

The latest release fixes this. Thank you!

kirkawolff avatar Nov 20 '24 19:11 kirkawolff

Same issue.

1.6.22 Samsung Galaxy 22+ Android 14

Actually I have since updated manually to 1.6.24 and it's working.

furyritchie avatar Nov 28 '24 22:11 furyritchie

The issue is not observed anymore on Android 14 with Element 1.6.24. Thanks for the fix!

profitrollgame avatar Nov 28 '24 23:11 profitrollgame

This issue should be closed

bro2020 avatar Nov 29 '24 15:11 bro2020

Resolved in 1.6.24 even though update is not on Google Play yet.

dmgartung avatar Nov 29 '24 15:11 dmgartung