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

Pressing home button on Android looses audio for an ongoing voip call #597

Open
softsan opened this issue Apr 19, 2024 · 4 comments
Open

Comments

@softsan
Copy link

softsan commented Apr 19, 2024

Before filing an issue please check that the issue is not already addressed by the following:

Please ensure that you are not sharing any
Personally Identifiable Information(PII)
or sensitive account information (API keys, credentials, etc.) when reporting an issue.

Description

Using twilio voice sdk in my voip app. When an incoming call in progress and then if user press home button and go to another app or just stay on home page on android, the app looses the audio. It gains once the user back to my app.

Steps to Reproduce

  1. Start a call
  2. Receive incoming call in Mobile app and accept it and call will be in progress
  3. Press home button (soft or hard) and app goes in background
  4. Audio lost once the home button pressed
  5. It will only be available once you come back to the app

Code

// Code that helps reproduce the issue

Expected Behavior

It should not loose the call audio and should continue the communication

Actual Behavior

It looses the call audio and hence the other party doesn't able to hear the voice

Reproduces How Often

100%

Versions

All relevant version information for the issue.

Voice Android SDK

6.5.0

OS Version

12,13, 14

Device Model

MotoG32
Samsung galaxy s32

@afalls-twilio
Copy link
Contributor

Thank you for the report, we are looking into this issue.

@ocarevs
Copy link
Collaborator

ocarevs commented Apr 26, 2024

@softsan It looks like you are losing audio focus when app is backgrounded or another app is opened. Are you using AudioSwitch twilio library for audio routing in your app? Have you encountered the same issue using this quickstart app?

@softsan
Copy link
Author

softsan commented Apr 26, 2024

Yes i am using audioswitch lib and I refer the quick start for my app.

@ocarevs
Copy link
Collaborator

ocarevs commented Apr 29, 2024

@softsan We are unable to reproduce the issue using quickstart. Do you also encounter this issue with voice quickstart app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants