Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return error reason here. #34

Open
zaycode opened this issue Mar 4, 2024 · 1 comment
Open

return error reason here. #34

zaycode opened this issue Mar 4, 2024 · 1 comment

Comments

@zaycode
Copy link

zaycode commented Mar 4, 2024

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
Copy link
Collaborator

yoer commented Mar 5, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants