ZEGOCLOUD / zego_uikit_prebuilt_call_flutter

MIT License
16 stars 13 forks source link

Missed call reminders #52

Closed codoffer closed 2 weeks ago

codoffer commented 3 months ago

Is your feature request related to a problem? Please describe.

When the receiver gets a call and is not able to receive it, there is no indication of the missed call.

Describe the solution you'd like Please send a notification for missed calls.

Describe alternatives you've considered There should be a webhook or callback for missed calls

Additional context

yoer commented 2 months ago

Arranging..

yoer commented 2 weeks ago
codoffer commented 2 weeks ago

Getting an error with the help page

The conversion of the article content encountered an exception and cannot be displayed.

yoer commented 2 weeks ago

help page is ready to publishing

yoer commented 2 weeks ago
yoer commented 2 weeks ago

Missed Call

If you need the redial feature for missed calls,(when enableReCall is true.), the invitation feature will no longer be compatible with versions before v4.12.0. This means that invitations sent by users of versions before v4.12.0 will not be received by users of version 4.12.0 or later, and vice versa.

Therefore, when releasing the app, it is important to implement a force upgrade for users to avoid issues with call reception.

Of course, if this feature is not used (that is, when enableReCall is set to false), the above problem will not exist.

Configurations

How to disable missed call pop-up notifications

  ZegoUIKitPrebuiltCallInvitationService().init(
    ...
    config: ZegoCallInvitationConfig(
      endCallWhenInitiatorLeave: true,
      missedCall: ZegoCallInvitationMissedCallConfig(
        enabled: false,
      ),
    ),
  );

How to disable missed call redial

  ZegoUIKitPrebuiltCallInvitationService().init(
    ...
    config: ZegoCallInvitationConfig(
      endCallWhenInitiatorLeave: true,
      missedCall: ZegoCallInvitationMissedCallConfig(
        enableReCall: false,
      ),
    ),
  );

Events

  ZegoUIKitPrebuiltCallInvitationService().init(
    ...
    invitationEvents: ZegoUIKitPrebuiltCallInvitationEvents(
      onIncomingMissedCallClicked: (
        String callID,
        ZegoCallUser caller,
        ZegoCallInvitationType callType,
        List<ZegoCallUser> callees,
        String customData,

        /// defaultAction is redial the missed call
        Future<void> Function() defaultAction,
      ) async {
        /// do some other logic

        await defaultAction.call();
      },
      onIncomingMissedCallReCallFailed: () {

      },
    ),
    ...
  );