How to unsubscribe from Messaging Channel and Realtime Database

I am making chat app where in Chat screen, it subscribes to messaging and realtime DB update listener. But after in and out the screens for 30 times, I got this error and it can’t receive message and listen to database anymore.




I tried removeAllMessageListeners() and removeUpdateListeners() inside dispose() but still doesn’t work.

Hello, @irwancheung.

We are aware of this issue. We have a ticket(BKNDLSS-25479) for solving this problem. When this is resolved, we will inform you.

Best regards, Nikita.

Hi, @Nikita_Fedorishchev

Any updates about this?

Hello @irwancheung

This ticket is still under discussion and has the status of “Open”. As soon as we know the information, we will let you know.

Regards,
Inna

Hi, guys.

It has been a month since this post was made. Has this case been resolved?

Hello, @irwancheung,

I am sorry that we were not able to give you a solution during this time. I understand why this problem is causing you inconvenience, so I have raised the priority of this task to resolve it as soon as possible. Thank you for your patience! We will contact you as soon as we have news.

Regards,
Stanislaw

Hi, @stanislaw.grin

Are there any updates about this issue? It has been more than 3 months already!

Hello, @irwancheung.

Could you please try using the following:

await channel.leave();
await channel.removeAllMessageListeners();

Best Regards, Nikita.