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

Background Calls in Android Not Working #177

Closed
rohandkn opened this issue Aug 27, 2020 · 8 comments
Closed

Background Calls in Android Not Working #177

rohandkn opened this issue Aug 27, 2020 · 8 comments
Labels
discussion An improvement proposal need discusse

Comments

@rohandkn
Copy link

Describe the bug
When putting the app in the background (switching to a different app or going to the home screen), the Agora voice call fails after about two minutes. We've noted the following behaviors.

Android 11 Beta: App gets killed after two minutes of background usage
Android 10: App no longer receives microphone input but can hear other members of the call

To Reproduce

  1. Install Agora with Flutter
  2. Run app and switch to background

Expected behavior

  1. I expected the voice call to continue to work in the background.

Desktop (please complete the following information):

  • MacOS
  • Safari
  • Version 13

Smartphone (please complete the following information):

  • Pixel 3
  • Android 10
  • Chrome
  • Version 29
@plutoless
Copy link

i think this is system behavior. if you want the mic to keep working you will need to implement a foreground service.

@LichKing-2234 LichKing-2234 added the discussion An improvement proposal need discusse label Aug 28, 2020
@veyhong
Copy link

veyhong commented Oct 6, 2020

Same happen to me, App become mute after switched to background android only.

@plutoless
Copy link

@veyhong as described above, you will need to use foreground service in this case.
i tried finding some example libs here: https://stackoverflow.com/questions/56862952/foreground-service-example-in-flutter
you can implement it by your own if needed.

@veyhong
Copy link

veyhong commented Oct 12, 2020

@plutoless isn't it Need to use Background service instead of foreground since we are put the app in background ?

@Tejareddy94
Copy link

i too have that issue. @plutoless it would be great if you provide example for this in your example code.

@plutoless
Copy link

plutoless commented Oct 24, 2020

@veyhong please read here what a foreground service does. https://developer.android.com/guide/components/foreground-services. the idea is it can keep your app working just like working in foreground even when it goes to background.

@LichKing-2234
Copy link
Contributor

you can refer to this comment.
#28 (comment)

@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
discussion An improvement proposal need discusse
Projects
None yet
Development

No branches or pull requests

5 participants