App crashes after call is initiated

Hi guys,

We have implemented the IOS SDK however once a user initiates a call we get the error message console.log(“Call initialization failed with exception:”, error); CometChat. I believe the call is connecting however the audio is not being transferred.

The code snippet for iniating the call is this:

CometChat.startCall(CallActivity.this, sessionId, callView, new CometChat.OngoingCallListener() {
public void onUserJoined(User user) {
Logger.error(TAG, " Name " + user.getName());
Toast.makeText(CallActivity.this, “Calling click”, Toast.LENGTH_SHORT).show();

            public void onUserLeft(User user) {
                Log.d(TAG, "onUserLeft: "+user.getName());


            public void onError(CometChatException e) {
                Log.d(TAG, "onError: "+e.getMessage());

            public void onCallEnded(Call call) {
                Log.d(TAG, "onCallEnded: "+call.toString());

Does anyone know how to resolve this?? @mayur.bhandari

Hello @flipspot
You mentioned you are facing the crash in iOS but the code snippet shared seems to be of Android. Can you please share the exact details if the app is crashing on Android or iOS and the relevant code? Also, it would be great if you could share the crash logs so that we can investigate this better.

Awaiting reply.

Sorry i meant android SDK, but the issue has been resolved from our end - thank you.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.