Saranshmalik / react-native-zendesk

React native wrapper for Zendesk SDK
MIT License
29 stars 42 forks source link

initialize credential failed (?) #28

Closed akimabs closed 2 years ago

akimabs commented 2 years ago

Hi, @Saranshmalik i just use your great package but i have small problem with it

react-native-zendesk-v2@^0.2.2

i initialize with this code

RNZendeskChat.init({
      key:
        Platform.OS === 'android'
          ? 'myandroidcredential='
          : 'myioscredential=',
      url: 'https://myurl.zendesk.com',
      appId: 'appid123123',
      clientId: 'mobile_Sdk',
    });

yes, ios and android both show this chat and help center screen, but both of them is nothing happen when chat and show the help center. can u help me solve my problem ? thanks before...

akimabs commented 2 years ago

i just following this issue and this but noting happen

akimabs commented 2 years ago

@saransh-malik or can u help me ?

Saranshmalik commented 2 years ago

Two things, first make sure your keys are correct. Chat keys should be correct or nothing works, try opening debugger for the app either in Xcode or Android Studio and you should see the Zendesk throwing logs in case those are wrong.

Secondly before starting the chat you need to set user identity which is step 2 of docs.

Also since you are using init method is your zendesk plan having answer bot purchased, it doesn't work w/o that and in case you want just chat you need to switch to other initChat method and use chatOnly:true while starting the chat.

Please ensure all these steps, I use the library in a production environment and the library works just fine, it would be an issue on your implementation part.

On Tue, Feb 8, 2022, 11:03 Abdul Hakim @.***> wrote:

Hi, @Saranshmalik https://github.com/Saranshmalik i just use your great package but i have small problem with it

react-native-zendesk-v2@^0.2.2

i initialize with this code

RNZendeskChat.init({ key: Platform.OS === 'android' ? 'myandroidcredential=' : 'myioscredential=', url: 'https://myurl.zendesk.com', appId: 'appid123123', clientId: 'mobile_Sdk', });

yes, ios and android both show this chat and help center screen, but both of them is nothing happen when chat and show the help center. can u help me solve my problem ? thanks before...

— Reply to this email directly, view it on GitHub https://github.com/Saranshmalik/react-native-zendesk/issues/28, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABONSCQE3TBF5SP2AJ3F74DU2CTJRANCNFSM5NZNONUA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

akimabs commented 2 years ago

hi @Saranshmalik i have already at the chat with bot android and iOS have working great(cause this key wrong), thanks!

but at the Help Center when i open it and they navigate to the chat page.

any sugestion with this ?

akimabs commented 2 years ago

thanks @Saranshmalik my issue already solved, cause not setVisitorInfo at the showHelpCenter

akimabs commented 2 years ago

@Saranshmalik @saransh-malik hi where we can store the firebase key for the push notification ?

firebase store is not defined at the dashboard and i cant find where to store it