livechat / react-native-livechat

React Native component to integrate LiveChat with your application.
MIT License
81 stars 48 forks source link

Cannot integrate live-chat to react native app #59

Open MnaveedS opened 4 years ago

MnaveedS commented 4 years ago

I have integrated react-native-livechat into my react-native project as mentioned in the documentation. but i am getting the following error on android device,

Screenshot_20200127-095931

and the following error on iOS emulator -

Screenshot 2020-01-21 at 2 38 39 PM

On iOS when the message is dismissed the chat window can be opened but no messages can be sent.

project currently running on - react-native - 0.59.9 react-native-livechat- "^2.0.0-6",

konradk commented 4 years ago

Hi @MnaveedS You mentionded react-native-freshchat-sdk, and this is react-native-livechat repository. Make sure you've installed the newest react-native-livechat version (2.0.0-6).

MnaveedS commented 4 years ago

Hi @konradk sorry was a mistake I have updated the issue to show the proper package and version.

konradk commented 4 years ago

Hi @MnaveedS - do you use any Fetch polyfill in your app?

MnaveedS commented 4 years ago

Hi @konradk no I am not using fetch, I am using axios for request handling.

konradk commented 4 years ago

@MnaveedS I don't know what is the root cause of your problem - our test apps and other developer's apps work fine. Are you able to recreate this problem on the new React Native app or share me privately sample app with this issue recreated?

MnaveedS commented 4 years ago

@konradk I'll try integrating it with a new project and get back to you, Thanks.

MnaveedS commented 4 years ago

@konradk I installed LiveChat on a fresh react-native Project. And got the following bug

Screenshot 2020-06-05 at 20 33 42 Screenshot 2020-06-05 at 20 33 56

NOTE I am getting the same error as before from my initial project as shown above

react-native - 0.59.9 react-native-livechat - "^2.0.0-12" "react-native-webview": "^10.2.3" (with jetify)

Also Tried on a project running "react-native": "0.62.2"

Getting same error