BearWare / TeamTalk5

TeamTalk 5 Development
www.bearware.dk
Other
307 stars 160 forks source link

Reintroduce android.permission.FOREGROUND_SERVICE #2236

Closed bear101 closed 2 months ago

bear101 commented 2 months ago

Without the android.permission.FOREGROUND_SERVICE it's not possible to press the power button and continue to listen to conversations. The connection will be dropped after a minute or so.

bear101 commented 2 months ago

Following the discussion here: https://github.com/BearWare/TeamTalk5/pull/2226

@poretsky this seems to fix the issue when pressing power button on the Android phone. If this look ok to you then I'll try to explain to Google why we need the android.permission.FOREGROUND_SERVICE. At least I know understand why.

On my Android 11 the connection/microphone is not dropped until after a minute or so. That's why I didn't notice it while testing.