ZEGOCLOUD / zego_uikit_prebuilt_call_flutter

MIT License
16 stars 13 forks source link

return error reason here. #34

Open zaycode opened 6 months ago

zaycode commented 6 months ago

It would be better to provide an error code and error message in ZegoUIKitPrebuiltCallController/ZegoUIKitPrebuiltCallInvitationService instead of just a boolean. For example, when calling user B and user B is currently not logged in or logged out, it appears as a bug when the call doesn't appear and there's no error displayed. so we can show to our user the reason error

this example ZegoUIKitPrebuiltCallController().invitation.send( invitees: [ZegoCallUser(call.id.toString(), call.name)], isVideoCall: true, ).then((value) { print("Message ${value['message']}") });

yoer commented 6 months ago

This is a good suggestion, and we will consider which version to insert this feature into (but definitely not so fast, because it involves unified modification of all APIs, and the fastest will be next major version, possibly 5.0).