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

Unable to set tokenID #40

Closed alenkopic1 closed 3 years ago

alenkopic1 commented 3 years ago

Hi, there isn't method for setting tokenID. For IOS there is a following method, but I can't find anything similar within Android SDK: CrispSDK.setTokenID(tokenID: "A_CUSTOM_ID") How can I set tokenID, using Crisp SDK for Android? Best regards

baptistejamin commented 3 years ago

Hello there! Thanks for reaching out! It is indeed not yet supported on Android but no worries as the team is working on this one. Currently, we can only set nickname and set emails.

FrantisekGazo commented 3 years ago

There is Crisp.setTokenID("A_CUSTOM_ID").

But I'm encountering crashes when I use it -> see logs: logs.txt When I start our app 1st time, set token id and start chat everything works. But when I close and open chat I get a crash. And then every time I try to open a chat I get the same crash. That is until I reset session and use a different token ID. (but the crash shows again after a while and I have to use a new id again...)

There's nothing I can do on my side, can you help?

baptistejamin commented 3 years ago

Hello

baptistejamin commented 3 years ago

Let me check this, could you let me know your email associated to Crisp and your website url please

FrantisekGazo commented 3 years ago

thanks. I set just a random email. do I have to use some email registrated on crisp?

FrantisekGazo commented 3 years ago

I'm using franky3@ventrata.com (domain is real but email doesn't really exist)

baptistejamin commented 3 years ago

Thanks, let me forward this to the tech team and I will get back to you

baptistejamin commented 3 years ago

Can I ask you to post this issue on our Github project?

FrantisekGazo commented 3 years ago

do you mean as a separate issue in this repo?

baptistejamin commented 3 years ago

Yes a new issue please :)

FrantisekGazo commented 3 years ago

done https://github.com/crisp-im/crisp-sdk-android/issues/43

baptistejamin commented 3 years ago

Thanks, the dev team will review it as soon as they can :)

eliottvincent commented 3 years ago

Closing (duplicate with #43)