crisp-im / crisp-sdk-android

:package: Crisp Android SDK, add a chat in any Android app and communicate with your users.
https://docs.crisp.chat/guides/chatbox-sdks/android-sdk/
Other
55 stars 17 forks source link

For Some users (NOT ALL) Crisp SDK is giving error : invalid_website_id #78

Closed kishansolankiOpenxcell closed 2 years ago

kishansolankiOpenxcell commented 2 years ago

For some users, Crisp Chat SDK is giving the following error:

CrispSocket: A websocket error occured.
    Name: session:created
    Args: [
        invalid_website_id
    ]

Here is the screenshot with logs and the application screen.

crisp_issue

this is how we've integrated it in the Android App:

We are initialising the SDK from the Application class by:

Crisp.configure(this, "my website ID")

and then to start the chatting screen, we are using this:

Crisp.configure(this, "my website ID")
Crisp.setTokenID(here we're setting user's token id)
val crispIntent = Intent(this, ChatActivity::class.java)
startActivity(crispIntent)

We are facing this issue only for one user. All other users are working fine. This means for all other users, we are able to chat from the application without getting any errors.

SDK version that we're using is: 'im.crisp:crisp-sdk:1.0.7'

Any help would be appreciated.

baptistejamin commented 2 years ago

What website ID are you using?

kishansolankiOpenxcell commented 2 years ago

Website id is : "83dbda3a-a0e5-47ed-a35c-8d572cd29e5b"

baptistejamin commented 2 years ago

Why am I getting an "invalid chatbox code" or "Invalid Website" error ? — https://help.crisp.chat/en/article/why-am-i-getting-an-invalid-chatbox-code-or-invalid-website-error-8j93zr/

baptistejamin commented 2 years ago

Can you check this?

kishansolankiOpenxcell commented 2 years ago

It doesn't help as it seems more useful for the website rather than the application (android app).

baptistejamin commented 2 years ago

Please do it :)

kishansolankiOpenxcell commented 2 years ago

@baptistejamin I have gone through the page and as I said earlier, it doesn't help to resovle this issue.

kishansolankiOpenxcell commented 2 years ago

I would also like to tell you that this issue is not arriving only in android but also faced in the iOS app as well. Check this also : https://github.com/crisp-im/crisp-sdk-ios/issues/61

baptistejamin commented 2 years ago

As we speak the option Lock chatbox to domain option is still enabled.

Disable it please.

kishansolankiOpenxcell commented 2 years ago

Thank you for your quick response. It worked for Android now!