ConnectionObserver types
Hi, I am developing Zendesk Chat for an Android app and I have encountered one problem about the ConnectionOvserver.
When I check status in Watches of Android studio after a breakpoint
status = connection.getStatus();
I have only these types which appears (Unknown, Connecting and Connected).
The problem is when I close the chat the status not tell me closing or closed and it's critical for my dev about chat.
Thank you in an advance for your help,
-
Hi Ousama! Welcome to the Community!
I'll see if I can find someone to help with your question. :)
-
Hi Jessie,
i'm waiting for your feedback.
thank you,
-
Hey Ousama -
Sorry that this has taken a few days. To the best of my knowledge, you're the first person that's reached out re: building a chat app. I think we're close to finding an answer for you though - thanks for your patience!
-
Hi Ousama! Sorry for the delay - I've reached out to our Moderators and our Developer Support team to see if anyone has any input for you!
-
Hi,
We are investigating why the closed connection type doesn't propagate to the mobile SDK. We'll post back here when we know some more.
Thanks!
-
Hi Nicole, Jessie and Barry,
thank you for your help and also sorry for the delay.
Ok I'll wait news.
Thank you and good luck.
Kind Regards, -
Hi everyone,
some news ?
In advance thank you.
Kind Regards -
Hi Ousama
The iOS version simulates a connection closed event, whereas the Android version does not. We will look at fixing this in a future version.
We have a sample app which is built on top of the API which you may find useful.
Please sign in to leave a comment.
8 Comments