Recent searches


No recent searches

Close messaging conversation



Posted Nov 30, 2023

Context: When our app is sent to background for X minutes and opened later, the user has to authenticate/login again, just like most baking apps.

Problem: If the conversation was open before the app was sent to the background, when the app comes to the foreground again, the conversation is visible.

Goal: Programmatically close the conversation when the app goes to background

I created a Zendesk Support ticket and already got some responses, but they also suggested to create a ticket in dev community.

For iOS I've been told that I could close the conversation screen by adding the view to a new UI controller which I could destroy whenever I want, and I got this link just in case I want to try something similar:
https://support.zendesk.com/hc/en-us/community/posts/4420766059930/comments/4596294062362

However, I don't know how can I get this done in Android. 

Questions:

  • Do you have any example of how to do that in Android?
  • It would be great to add both examples to your GitHub demos/repository, it seems like a very common case.
  • This is just my opinion, but I think it makes sense to have a ".closeMessaging" method. Almost every method/operation in Zendesk Messaging SDK has also its opposing one: Login/logout, addListener/removeListener, initialize/invalidate, setConversationFields/clearConversationFields, ... Wouldn't it be great to also have a default ".closeMessaging"?
    Why does not exist?
    Is it in your roadmap? 

 

Thanks in advance


5

8

8 comments

Hi, any news on this?

1


Bump on this. Would be very useful to have.

2


Second this - ability to programmatically close chat that could contain sensitive information would be a great addition. The session can be de-authorised but this isn't the same - and doesn't present a particularly pleasant UX. We'd love to have this feature!

1


I think this should have been a native feature. If you look at Amazon and other large chat experiences, chats are always set to timeout within a few mins. We shouldn't have to wait hours to close a chat, it should be customizable to a few mins, as set by the business. Please roadmap this. It creates both a bad customer experience, and a bad rep experience, with the never-ending open conversations.

3


Agree with all of the above. Is there any status update on this?

 

1


I have experienced this issue also. is there any update?

0


We have a need for the ability to close the Chat programmatically as well because we implemented clickable links delegate in the app which is suppose to direct the user to specific screens in the app after clicking certain links. The problem is after clicking the link, the screen loads “underneath” the chat window and the user cannot see the linked screen until they manually close the Chat window. 

To improve the experience, we need to programmatically dismiss the Chat window before redirecting the user to the desired screen.

Any updates on this? Or anyone else find a workaround to do this?

0


Bump on this. Would be very useful to have.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post