ZEGOCLOUD / zego_uikit_prebuilt_call_flutter

MIT License
17 stars 17 forks source link

Can we handle hold on on going call when we get call from other app and accept that call? #65

Closed atulproject99 closed 1 month ago

atulproject99 commented 2 months ago

Environment

Technology Version
Flutter version Latest
Plugin version Latest
Android version
iOS version
macOS version
Xcode version
Google Chrome version

Device information:

Description

Expected behavior: Call should be go on hold if i will busy on other call or voip call

Current behavior:

Problem:
When we receive another call from an app like WhatsApp while an active call is ongoing in our Flutter app, the issue arises where our app’s call is not placed on hold. Ideally, when we answer the WhatsApp call, our app’s ongoing call should be automatically placed on hold.

Steps to reproduce

  1. This
  2. Than that
  3. Then

Images

Stacktrace/Logcat

atulproject99 commented 2 months ago

Problem:
When we receive another call from an app like WhatsApp while an active call is ongoing in our Flutter app, the issue arises where our app’s call is not placed on hold. Ideally, when we answer the WhatsApp call, our app’s ongoing call should be automatically placed on hold.

https://github.com/user-attachments/assets/c378e950-76af-450d-ad78-3fcd2d276c3f This the demo video, when we're in call and I got call on my mobile. App call is still running in background

https://github.com/user-attachments/assets/71b9b650-ee2d-43fe-8b8f-2eced29e0825 Demo video for WhatsApp call as well. It's allowing us to continue talking in this app as well and even on WhatsApp call as well.

yoer commented 2 months ago

You can try to listen to this event. When the phone microphone is interrupted, an event will be thrown.


ZegoUIKitPrebuiltCallInvitationService().init(
  ...
  events: ZegoUIKitPrebuiltCallEvents(
    audioVideo: ZegoCallAudioVideoEvents(
      onRemoteMicrophoneExceptionOccurred: (
        ZegoUIKitUser targetUser,
        ZegoUIKitDeviceExceptionType? type,
      ) {
        ///
      },
    ),
  ),
);
atulproject99 commented 2 months ago

Ok i will test it

atulproject99 commented 1 month ago

@yoer its working fine