Saranshmalik / react-native-zendesk

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

Chat bot not started on ios and no messages are shown #22

Open hanaechahid opened 3 years ago

hanaechahid commented 3 years ago

Hello @Saranshmalik , I used your component in my react native project and it is working fine on android, but unfortunately it is showing an empty screen on ios . Also, even if I write a message I always get empty screen and no response from the bot just like android. this is how the zendesk initialized:

//initialize zendesk SDK
 RNZendesk.init(zenDeskConfig);

and start chat method:

RNZendesk.startChat({
        name: this.props.connectedUser.name,
        email: this.props.connectedUser.mail,
        tags: [tag],
        botName: "bot",
        chatOnly: true
    });

ios screen 52539FB3-4623-42F8-AFFC-5E6DEFF0F83F

android screen: Screenshot_20210903-091731

any help please ?!

Saranshmalik commented 3 years ago

Well, this feels like iOS pods not correctly being installed, since android is working fine I am assuming all creds are fine and the startChat method seems to be done correctly as well. Did you try re installing pods for ios?

Saranshmalik commented 3 years ago

Also check xcode logs and see if you find any Zendesk related errors there? I just tried on my end and I could see the chat bot messages coming up for me

Saranshmalik commented 3 years ago

And just to confirm, it needs an active internet connection on device or it won't work.

hanaechahid commented 3 years ago

Hi @Saranshmalik,

there is no xcode logs and my device is already connected to an active internet. I tried re installing pods many times and nothing changed.

hanaechahid commented 3 years ago

by the way my react native version "0.59.0" and react-natie-zendesk-v2 is "0.2.2"

saransh-malik commented 3 years ago

by the way my react native version "0.59.0" and react-natie-zendesk-v2 is "0.2.2"

Well the package states it hasn't been tested for any RN version <0.60 I would say try to run the react native autolink command since RN 0.59 doesn't autolink packages on its own. You can find the command details on google, I beleive that should solve the issue

hanaechahid commented 3 years ago

I already did it: react-native link react-native-zendesk-v2

mhisham commented 2 years ago

I have rn 0.63.3 but facing the same issue on ios times it works and most of time it doesn't work

console-debugger commented 2 years ago

i am also facing same issue here

console-debugger commented 2 years ago

https://user-images.githubusercontent.com/108538625/192097149-5a076547-3b89-4c92-9be6-a47bd776008c.mov

i am also facing same issue here, not able to go further. This happens only in iOS device