JivoChat / JivoSDK-Android

The Jivo Mobile SDK allows you to embed the Jivo chat into your Android mobile applications to receive customer requests
https://www.jivochat.com
10 stars 5 forks source link

Client info not sending to Dashboard #55

Closed sachit2012 closed 3 months ago

sachit2012 commented 1 year ago

I'm trying to send client info, but it was not showing on JivoChat Dashboard. Tried on App class and also on MainActivity but unable to get client info on JivoChat dashboard, also this was not showing any error in Logcat. Please check the attachment of App, build.gradle app level and project level.

  Jivo.setClientInfo(
            ClientInfo.Builder()
                .setName("John Doe")
                .setEmail("example@mail.local")
                .setPhone("+91 8808347340")
                .build()
        )

AppClass_Jivo Build_Gradle(App Level) Build_Gradle(Project Level)

tavtorkin-jivo commented 1 year ago

Hi. Try updating the SDK to 1.2.1

On 1 Mar 2023, at 08:10, sachit2012 @.***> wrote:

I'm trying to send client info, but it was not showing on JivoChat Dashboard. Tried on App class and also on MainActivity but unable to get client info on JivoChat dashboard, also this was not showing any error in Logcat. Please check the attachment of App, build.gradle app level and project level.

Jivo.setClientInfo( ClientInfo.Builder() .setName("John Doe") .@.***") .setPhone("+91 8808347340") .build() ) https://www.google.com/url?q=https://user-images.githubusercontent.com/108650676/222050533-807cd07f-321e-4322-ab9d-ad1e3c59f9dd.png&source=gmail-imap&ust=1678252206000000&usg=AOvVaw181u-Ph66NKvtPle4ew1oL https://www.google.com/url?q=https://user-images.githubusercontent.com/108650676/222050543-ae8cdba8-248b-4f38-9511-996290180aec.png&source=gmail-imap&ust=1678252206000000&usg=AOvVaw22NfEtEEZt970W-0OnO2Ep https://www.google.com/url?q=https://user-images.githubusercontent.com/108650676/222050547-0614d8bf-1fc7-4719-80b1-efb74fe05ffc.png&source=gmail-imap&ust=1678252206000000&usg=AOvVaw2PJK8ncjQFZHHB-24jxq8J — Reply to this email directly, view it on GitHub https://www.google.com/url?q=https://github.com/JivoChat/JivoSDK-Android/issues/55&source=gmail-imap&ust=1678252206000000&usg=AOvVaw2uwCcQfCsuiJqRiVeuwto8, or unsubscribe https://www.google.com/url?q=https://github.com/notifications/unsubscribe-auth/ATPH7GFIUCAFAQZE2Y77ZVLWZ3K2ZANCNFSM6AAAAAAVLSNARY&source=gmail-imap&ust=1678252206000000&usg=AOvVaw0P3Hh1NsMM4NyN3uz-s8sn. You are receiving this because you are subscribed to this thread.

sachit2012 commented 1 year ago

Hi. Try updating the SDK to 1.2.1 On 1 Mar 2023, at 08:10, sachit2012 @.> wrote: I'm trying to send client info, but it was not showing on JivoChat Dashboard. Tried on App class and also on MainActivity but unable to get client info on JivoChat dashboard, also this was not showing any error in Logcat. Please check the attachment of App, build.gradle app level and project level. Jivo.setClientInfo( ClientInfo.Builder() .setName("John Doe") .@.") .setPhone("+91 8808347340") .build() ) https://www.google.com/url?q=https://user-images.githubusercontent.com/108650676/222050533-807cd07f-321e-4322-ab9d-ad1e3c59f9dd.png&source=gmail-imap&ust=1678252206000000&usg=AOvVaw181u-Ph66NKvtPle4ew1oL https://www.google.com/url?q=https://user-images.githubusercontent.com/108650676/222050543-ae8cdba8-248b-4f38-9511-996290180aec.png&source=gmail-imap&ust=1678252206000000&usg=AOvVaw22NfEtEEZt970W-0OnO2Ep https://www.google.com/url?q=https://user-images.githubusercontent.com/108650676/222050547-0614d8bf-1fc7-4719-80b1-efb74fe05ffc.png&source=gmail-imap&ust=1678252206000000&usg=AOvVaw2PJK8ncjQFZHHB-24jxq8J — Reply to this email directly, view it on GitHub https://www.google.com/url?q=https://github.com/JivoChat/JivoSDK-Android/issues/55&source=gmail-imap&ust=1678252206000000&usg=AOvVaw2uwCcQfCsuiJqRiVeuwto8, or unsubscribe https://www.google.com/url?q=https://github.com/notifications/unsubscribe-auth/ATPH7GFIUCAFAQZE2Y77ZVLWZ3K2ZANCNFSM6AAAAAAVLSNARY&source=gmail-imap&ust=1678252206000000&usg=AOvVaw0P3Hh1NsMM4NyN3uz-s8sn. You are receiving this because you are subscribed to this thread.

Not resolved by upgrading version into:- implementation 'com.jivosite.sdk:android-sdk:1.2.1'

tavtorkin-jivo commented 1 year ago

You call the Jivo.setClientInfo() method immediately after Jivo.init(), try adding a delay.

On 1 Mar 2023, at 08:10, sachit2012 @.***> wrote:

Jivo.setClientInfo

sachit2012 commented 1 year ago

You call the Jivo.setClientInfo() method immediately after Jivo.init(), try adding a delay. On 1 Mar 2023, at 08:10, sachit2012 @.***> wrote: Jivo.setClientInfo

After applying Handler of 5 second on my fragment, then it working fine, but which would be better solution apart from Handler ?

tavtorkin-jivo commented 1 year ago

@sachit2012 We have completely redesigned the sending of client information. And we advise to update the SDK to version 2.0.0 https://github.com/JivoChat/JivoSDK-Android/releases/tag/v2.0.0