walterholohan / react-native-crisp-chat-sdk

React-Native bridge for Crisp Chat iOS and Android SDK's
MIT License
70 stars 26 forks source link

Android - Chat is not closing properly the first time #82

Closed JusTmaino closed 1 year ago

JusTmaino commented 1 year ago

The Chat is opening without any problems but once i try to close it the first time, it stuck on loading "Starting chat...". While debugging, i don't see any errors, and i found out that if i leave the app (let it running in the background) and go back, the chat is open and i can close it without any issues. Sadly, i need to do those steps every time i start my app to have the chat working properly and it is frustrating.

Btw everything works fine on iOS

we are going to production this month, please i need help with this, thanks in advance

CRISP SDK : im.crisp:crisp-sdk:1.0.12 "react": "17.0.1" "react-native": "0.64.3"

loading

baptistejamin commented 1 year ago

Hello!

Would it be possible to send baptiste@crisp.chat a ZIP file of the project so we can reproduce the issue?

akinlekan28 commented 1 year ago

@baptistejamin I can offer to send a reproducible demo because i am having the same issue as described here

baptistejamin commented 1 year ago

Sure! Please send a zip file to baptiste@crisp.chat with the reproduced issue

JusTmaino commented 1 year ago

Hello!

Would it be possible to send baptiste@crisp.chat a ZIP file of the project so we can reproduce the issue?

Hello, thnx for the reply, yes, i will send you today hoping to find a solution soon

baptistejamin commented 1 year ago

I didn't receive yet your file

JusTmaino commented 1 year ago

I didn't receive yet your file

i just send it, sorry for the late answer, thanks for ur help ;)

baptistejamin commented 1 year ago

After investigating, it seems you are displaying the chat twice. I am currently checking a workaround.

JusTmaino commented 1 year ago

After investigating, it seems you are displaying the chat twice. I am currently checking a workaround.

The chat display once you open the contact tab (using show() method), i don't see how it open twice ?

What do you think about the behaviour that resolve the issue :

  1. Once you open the chat, close it (it stuck at loading).
  2. Leaves the app (let it running in the background) and go back to the app
  3. The chat is open and you can close it without any issues (after this manipulation, no problem at all, only if you close completly the app and you restart it again)."
baptistejamin commented 1 year ago

Can you try with version 1.0.13 for the android SDK?

JusTmaino commented 1 year ago

Can you try with version 1.0.13 for the android SDK?

First impression with the demo project i sent u, it works fine, i will try it in our main project and i will let you know, thanks for the fast reply ;)

JusTmaino commented 1 year ago

Can you try with version 1.0.13 for the android SDK?

After testing with 1.0.13, everything seems working fine, thanks a lot for your help ;)

ForevereBest commented 1 year ago

How to solve this problem?

baptistejamin commented 1 year ago

Did you upgrade to the latest android SDK?