Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microphone gets muted when user locks screen while in call. #468

Open
DooMMasteR opened this issue Aug 14, 2024 · 6 comments
Open

Microphone gets muted when user locks screen while in call. #468

DooMMasteR opened this issue Aug 14, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@DooMMasteR
Copy link
Contributor

Whenever the user locks the phone screen (Android) while in a call, the devices microphone will be muted after a few moments.

Steps to reproduce the behavior:

  1. Make call
  2. lock screen while in call
  3. wait for up to 10 seconds
  4. the mic becomes muted until you unlock the phone again

I would have expected the call to stay functional.

Flutter SDK Version: 3.22.3
Target OS and Version: SDK 21
Host OS and Version: Android 14

@DooMMasteR DooMMasteR added the bug Something isn't working label Aug 14, 2024
@kritika6785
Copy link

Give microphone permission as a background service, it will work.

@DooMMasteR
Copy link
Contributor Author

Just any service? Our call/callui is currently not a service, this worked fine so far, but now it started failing on multiple devices.

@kritika6785
Copy link

kritika6785 commented Aug 23, 2024

<service android:name="id.flutter.flutter_background_service.BackgroundService" android:foregroundServiceType="microphone"> <property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_MICROPHONE" android:value="callerApp=ProcessRecord"/> </service>
I had used flutter_background_service

@RaviGaruda
Copy link

RaviGaruda commented Sep 12, 2024

@kritika6785 Awesome its working good

@RaviGaruda
Copy link

RaviGaruda commented Sep 12, 2024

@kritika6785 have you made foreground service for keep running active call if user close/terminate application during live voice call?

@kritika6785
Copy link

kritika6785 commented Sep 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants