Problem/Question
I am facing issue in comet chat calling one-to-one user
Chat API/SDK Information
i am using
cometchat_chat_uikit: ^5.0.3
cometchat_calls_uikit: ^5.0.3
Reproduction Steps
when A is calling B…outgoing screen is appearing on A and incoming screen appearing on B…but when A cancel the call on outgoing screen it pops out to previous screen…same with B(incoming screen disappears…working fine)…but when i try again to call it shows please end previous call
Frequency
happening frequesnlty
Impact
it is crirical…
flutter: call could not be initiated <CometChatSDK.CometChatException: 0x600003174e10> Call is in progress. Please end the previous call to perform this operation ERROR_CALL_IN_PROGRESS.
flutter: PageManager: Call rejected from ccCallRejected ===============>>>>>>>>> Instance of ‘Call’
flutter: 0 686e1441817e5d80f42f8c2e 686e1441817e5d80f42f8c2e
flutter: playSound = false
[log] call was cancelled
flutter: call rejected successfully
I/flutter (25328): PageManager: Incoming call cancelled by Mithun
I/flutter (25328): Force removing incoming call route if exists
I/flutter (25328): PageManager: Active call: null
@override
Future onIncomingCallCancelled(Call call) async {
debugPrint(“PageManager: Incoming call cancelled by ${call.sender?.name ?? ‘Unknown’}”);
_handleCallCancellation();
try {
final Call? active = await CometChat.getActiveCall(); // await lagao
debugPrint(“PageManager: Active call: ${active?.sender!.name}”);
} catch (e) {
debugPrint(“ Error checking or ending active call: $e”);
}
}