Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛] Android - Chat window dismissed when minimising app and opening again #42

Open
Shahzad101digital opened this issue May 11, 2023 · 1 comment

Comments

@Shahzad101digital
Copy link

Describe the issue
Chat window disappear when user tries to minimise the app and open again.

To Reproduce

  1. Open App
  2. Press Chat with Agent Button
  3. It will open Salesforce Chat Modal
  4. now minimise the app
  5. Chat window disappears

Expected behaviour
When user open app again after minimising it should show the chat window.

Device:Any Android Device
OS: Any Android OS Version
rn-salesforce-chat version (please complete the following information): 3.4.1

Thanks

@MarlonAEC
Copy link

Hey @Shahzad101digital, I think this is not an issue on the library, I struggled with the same thing when I was working on implementing this for my company and we realize that there are some configurations you can make on the backend to correct this behavior. Check this link here they explain there is an allowMinimization config that you can set to true and this will allow the user to minimize the app while having the chat session open. And also in this other link they explain how to customize the amount of time the user can have the app minimized before the session expires since by default it will kill the session after 1 or 2 min I think. Look for: Idle Connection Timeout Duration and Idle Connection Warning Duration, customizing the warning the user will get a popup notification notifying it that the session is about to expire and the other one is about the session already expired. By which btw you can hook to those events on this library if you want to do something fancier to notify the user or something like that. Hope that helps, let me know if that solves the issue for you. Best regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants