twilio / voice-quickstart-android

Quickstart app for the Voice Android SDK
https://www.twilio.com/docs/api/voice-sdk/android/getting-started
MIT License
184 stars 140 forks source link

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

Closed softsan closed 2 months ago

softsan commented 4 months ago

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 commented 4 months ago

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

ocarevs commented 4 months ago

@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 commented 3 months ago

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

ocarevs commented 3 months ago

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

afalls-twilio commented 2 months ago

Closed due to a lack of customer engagement.