Closed bear101 closed 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.
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.