-
Notifications
You must be signed in to change notification settings - Fork 28
not possible to continue a chat session #36
Comments
@KohlsAdrian same problem here. The example still with circular loading until new message sent from the agent or agent start typing in the meantime the app only show a circular loading. |
I notice this problem only affect on Android, on iOS works well. For reproduce: 1.- Connect to chat (works well) |
you are right, it seems to only affect android. so imo we need a fix where the existing model is always send to a subscriber the moment he subscribes. |
Fro the moment my solution is instead of compare if provider model is null I compare if the connection status is connected, if yes then show the chat screen, then when the user send a new message the user recover the history of the chat with the last message. This behaviour I already see in other apps. The other problem I notice is when the apk is compiled after send a message the chat changed with state CONNECTION FAILED. @KorbinianMossandl you notice this problem? Remember only compiled apk. Simulator or compile throught Android Studio works well. |
i get a very unstable connection in general. but i think that is just zendesk. I added a reconnect button so the user can try to reconnect whenever it happens. |
yep, but only when I compile de APK? its very strange... |
do you have different zendesk keys in your build settings based on type of build? like zendesk sandbox key when doing dev builds and normal key when doing prod builds? because sandbox gives me way more disconnects/unstable connection . |
you should reinitialize the providers, you should call |
But why on iOS works fine and this problem only occurs in Android? And why the providers starts automatically after the agent sent a message or start typing? If the startProviders() not called not have sense that the apps start works when agent start typing or sent message, not? |
you missunderstood. i do |
Hi, I think I'm having the same issue on iOS when I hot restart the application and the stream is reset. Anyone experiencing this? |
if you don't end the chat session via
_zendeskChat.endChat()
because you want to let a user come back to the same chat session it is not possible becausewill never set the _providerModel. Only if someone sends a message the listen method will be triggered and the
_providerModel
will be set and show all the history.So i think we need a change where subscribing to the stream always updates
_providerModel
if there already is a chat history.The text was updated successfully, but these errors were encountered: