stream-video-flutter icon indicating copy to clipboard operation
stream-video-flutter copied to clipboard

Audio Not Transmitted from Receiver to Caller When Receiving a Call on Android Lock Screen

Open keshav-sf opened this issue 1 year ago • 2 comments

Description: We are experiencing an issue where the receiver (Android device) is unable to transmit their voice to the caller when receiving a call while the device is locked. Here's a summary of the problem:

  • Steps to Reproduce:

    1. The receiver's Android device is on the lock screen.
    2. The caller initiates either an audio or video call.
    3. The receiver accepts the call and is prompted to enter the device's passcode.
    4. Once the passcode screen is displayed, the receiver can hear the caller, but the caller cannot hear the receiver.
  • Test Results:

    • Tested iOS to Android: In this scenario, the issue persists on Android, but not on iOS.
    • Audio and Video Calls: This issue occurs with both audio and video calls.
    • iOS Behavior: When the receiver is on the lock screen on iOS, communication works perfectly.
  • Expected Behavior:

    • The receiver should be able to communicate normally (both send and receive audio/video) even if the device is on the lock screen.
  • Current Behavior:

    • The receiver can hear the caller, but their voice is not transmitted to the caller once the passcode screen appears.

Environment:

  • Platform: Android
  • Test devices: IQOO Z6
  • OS Version: Funtouch OS 14

Additional Information:

  • We’ve attempted the same scenario with both audio and video calls, and the issue persists in both cases.
  • This issue only affects Android devices, while iOS devices do not encounter this issue when receiving calls on the lock screen.

Looking forward to your feedback and suggestions on how to resolve this issue.

keshav-sf avatar Jan 24 '25 14:01 keshav-sf

Hi @keshav-sf, thank you for providing such a detailed description! I just have a few clarifying questions to better understand the issue.

  • Does this behavior occur in a specific app state (foreground, background, or terminated), or does it happen across all states?
  • Does the audio start working after you unlock the screen following the call acceptance?

I tried reproducing the issue on my end but wasn’t able to, so I’d appreciate a bit more context. It might also be related to a specific Android device or system version. Have you had a chance to test this on other Android devices?

Brazol avatar Jan 28 '25 16:01 Brazol

@Brazol When the app is on the lock screen and I accept a call, it displays the passcode on Android. If I remain on that screen, the issue occurs; however, if I enter my passcode and return to the app, the audio transmits properly.

And I also wanted to ask that, Couldn't we display a call screen at lock screen on Android, similar to WhatsApp?

keshav-sf avatar Feb 05 '25 18:02 keshav-sf

@Brazol When the app is on the lock screen and I accept a call, it displays the passcode on Android. If I remain on that screen, the issue occurs; however, if I enter my passcode and return to the app, the audio transmits properly.

And I also wanted to ask that, Couldn't we display a call screen at lock screen on Android, similar to WhatsApp?

This happens because you need to declare a permission in your AndroidManifest.xml for your Activity (in this case, your flutter UI) to be opened in the lock screen. Check https://developer.android.com/reference/android/R.attr.html#showWhenLocked

td2thinh avatar Jul 09 '25 10:07 td2thinh

Hey @keshav-sf , we did fixed this in the lastest stream_video_push_notification. Can you test and see if it's fixed for you?

xsahil03x avatar Aug 20 '25 12:08 xsahil03x

Hey, you can help us out by closing this issue if the problem no longer exists, or adding more information.

github-actions[bot] avatar Aug 28 '25 00:08 github-actions[bot]

This issue has been closed automatically because it needs more information and has not had recent activity. If the issue still persists, please reopen with the information requested. Thanks.

github-actions[bot] avatar Aug 31 '25 00:08 github-actions[bot]