Call functionality not working when listener is removed and recreated

Hello,

We have the following test case that is problematic as of lately:

  1. user 1 logs into the web app (JavaScript sdk)
  2. user 2 logs into the mobile app (Ionic SDK)
  3. user 1 calls user 2 and all is working OK
  4. user 2 logs out of the app, this is the moment in which we remove all of the opened listeners
  5. after few seconds user 2 logs back into the app, this is the moment in which we build all of our listeners
  6. user 1 calls user 2 and user 2 receives no call (there are no errors, we just do not receive the call)

Is there anything that we can do to fix this - is there a wait time until a new listener can be created? Is there a way to find our the opened listeners or if there was an error when the listener was destroyed/created?

Best,
Mihaela

Hello @MihaelaCazan ,

Can you please let us know the version of the SDK (Javascript & Ionic) you are using? Also, can you share a small screen recording demonstrating the issue?

Warm Regards,

CometChat Pro
Mayur Bhandari

Hello @mayur.bhandari ,

We have tested on Javascript SDK 2.2.1 and also downgraded to 2.1.6 and on Ionic SDK for calls (0.0.9 for Android, 0.0.8 for iOS as we can not install 0.0.9 due to an error and then also downgraded to 0.0.6 for both iOS and Android) and the issue is persisting in all instances.

A couple of weeks ago we were using Javascript SDK 2.1.6 and Ionic SDK 0.0.6 for calls and all was working OK this is why we decided to downgraded to this specific versions.

About the screen recording I want to receive approval to sent it to you and will share it via the chat functionality (if possible to attach videos) within the Comet Chat Pro Dashboard interface.

Best,
Mihaela

Hello @MihaelaCazan,

I am not sure if downgrading to 2.1.6 is the right solution. However, can you please let us know if you have implemented Connection Listeners?

Yes, you can share videos from the CometChat Pro Dashboard.

Warm Regards,

CometChat Pro
Mayur Bhandari

Hello @mayur.bhandari ,

No, we do not have connection listeners integrated yet.

Best,
Mihaela

Hello @mayur.bhandari ,

The suggested connection listeners serve any function other that knowing what is the status of our connection to the CometChat server? Should we implemented functionality around it like listener creation or removal?

Best,
Mihaela

Hello @MihaelaCazan,

No that is not the ideal use case of Connection Listener, I asked if you were using Connection Listener because I wanted to know if the user was connected to our WebSockets server or not? The issue you mentioned, does the user gets a real-time call or any other notification if tried a couple of minutes later or does not get a real-time call or any other notification?

Warm Regards,

CometChat Pro
Mayur Bhandari

Hello @mayur.bhandari ,

Thank you for the clarification. The use case was that the user does not seem to get the call notifications at all upon log out and log back in and for online/offline status it gets them but with a delay of 5-10 seconds sometimes more, the messages on the other hand seem to work fine.

Best,
Mihaela

Hello @MihaelaCazan,

That is really weird, if you are getting normal messages in real-time you should be getting the incoming call notifications. Can you please connect with us via the support system available from the CometChat dashboard?

Warm Regards,

CometChat Pro
Mayur Bhandari

Hello @mayur.bhandari ,

Thank you for the follow-up, we have added the connection listeners and are investigating the listeners creation on our end to see if there might be a situation in there but we will be sure to use the support system as advised, if we cannot address it.

Thank you,
Mihaela

Hi @MihaelaCazan,

Thank you for the confirmation. I am closing out this ticket.
For any further technical support, please write to us at help@cometchat.com.

Regards,
Provesha