Skip to content

[BUG] No audio for Voice Calls after one-time permission expired #96

@trav3ll3r

Description

@trav3ll3r

Code of conduct

Self-training on how to write a bug report

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After the one-time permission expires the calls are still getting connected but the audio cannot be heard.

The Voice and Video Calls is still enabled but the permission is not granted and the app does not request it again and it quietly fails to obtain access to the microphone.

Expected Behavior

At the minimum:

  1. The caller should not be able to initiate or receive a call if the microphone permission is not granted

Stretch goal:

  1. the user should be notified that the permission is not granted (anymore) and let them know why the calls won't work unless enabled again (permanently or as one-time again)
  2. the Voice and Video Calls option should switch back to disabled on application start if the one-time permission has expired

Steps To Reproduce

  1. Launch the app and have at least one contact to call
  2. Go to Privacy and enable Voice and Video Calls
  3. When asked for the permission, select Only this time
  4. Make a call and check the other party can hear audio
  5. Kill the Session application process to force the one-time permission to expire (e.g. Force Stop or reboot the device)
  6. Launch the app again
  7. Make a call and check the other party can hear the audio

Android Version

Android 13

Session Version

1.17.4

Anything else?

One-time permissions were introduced in Android 11/R (API 30).

This issue will likely affect all versions running on Android 11 or later.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood-first-issueGood issue for first time contributors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions