taskrabbit / react-native-zendesk-chat

React Native Wrapper around Zendesk Chat v2
MIT License
130 stars 128 forks source link

Connection failed on iOS #105

Open amserhii11 opened 3 years ago

amserhii11 commented 3 years ago

On android it works fine. But when I send message from iOS I can't get it on Zendesk and got this: 1) Last message can't be sent 2) After relaunch the bot we got "connection failed"

And can't retry connection. Any ideas? image

image

amserhii11 commented 3 years ago

@fbartho Hi! Do you know what's the problem with it?
RN 0.63.1 Lib 0.4.1-beta.7

fbartho commented 3 years ago

I just verified that it’s working fine for our company as of 10:30am California.

Is it possible this was a transient outage on Zendesk’s side, maybe due to the weather emergency in Texas? Or have you verified that live chat works on your website’s zendesk integration?

amserhii11 commented 3 years ago

@fbartho Hi. Sorry for the answer long. I have verified that live chat works on android properly. This issue only on iOS. I just can't get my messages on the Zendesk console. May it be my mistakes with zen desk configuration. Could I be missing something in the settings of chat ?

amserhii11 commented 3 years ago

@fbartho I just use only Zendesk Account Key without AppID. May it be the reason?

fpena commented 3 years ago

I have this issue also. Using both account key and app id.

amserhii11 commented 3 years ago

@fpena did you fix it?

fpena commented 3 years ago

@fpena did you fix it?

For me it was just an error in the account key.

amserhii11 commented 3 years ago

@fpena What is the problem with it? Did not you configure the app in zendesk? Or just a mistake with a key? Because I still have it not fixed.

fpena commented 3 years ago

@fpena What is the problem with it? Did not you configure the app in zendesk? Or just a mistake with a key? Because I still have it not fixed.

Mistake in the key.

rahulmr-rently commented 3 years ago

Without appID will this work ? I am still getting this issue and keys are correct here

amserhii11 commented 3 years ago

@rahulmr-rently For me, it not works with appID as well.

jamie78 commented 3 years ago

Facing same problem. This is probably zendesk issue. I have 2 accounts. One is working just fine and the other is not working on iOS. Just not connect to Zendesk.

amserhii11 commented 3 years ago

@jamie78 Could you compare these 2 accounts? May it be problems with configuration Zendesk account? Do you use appID ? Because I tried with appID and w/o both and it still not works for me.

amserhii11 commented 3 years ago

@fpena Is it require to have PEM file in app configuration? I can't find info about it. May it be a problem with it?

fpena commented 3 years ago

@fpena Is it require to have PEM file in app configuration? I can't find info about it. May it be a problem with it?

Not really. In order for me to work, was that I needed both account id and app id. All of this information can be seen with the Chat app in Zendesk.

fpena commented 3 years ago

Without appID will this work ? I am still getting this issue and keys are correct here

It didn't work for me without appId.

amserhii11 commented 3 years ago

@fpena Thank you. I tried all solutions but it still not works. So sad.

fpena commented 3 years ago

@fpena Thank you. I tried all solutions but it still not works. So sad.

Did you create the app in the Chats section? Also, I'm assigning some data after initializing the instance. Like name, phone and email I think.

amserhii11 commented 3 years ago

@fpena If you mean this one - I created it. Will try to assign data in 5 min. image

jamie78 commented 3 years ago

I don't think you need appId. This is just for push notifications. I think Zendesk is having some nice bugs there. Can you try to create new account on zendesk and try it?

amserhii11 commented 3 years ago

@jamie78 I tried 2 accounts. Both results for iOS.

amserhii11 commented 3 years ago

I tried to check it on Swift sample project and it works properly. So, I think problems in the library.

amserhii11 commented 3 years ago

Ok, I just got some problems with init params. I found it by

`
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  #if DEBUG
    ZDKChatLogger.isEnabled = YES;
  #endif

    ... 

  return YES;
}
`

Fixed. Thanks all for helping.

jamie78 commented 3 years ago

@amserhii11 what exactly was wrong? :)

Giosanu commented 3 years ago

@amserhii11 hey, can you give more details on your fix? I seem to be having the same problem (even thou two days ago it worked fine.. and I did nothing). Thanks!

fbartho commented 3 years ago

If you didn't change anything @Giosanu -- I would reach out to your Zendesk customer support representative. Maybe it's a known issue on their side!

amserhii11 commented 3 years ago

For me it was a problem was in "Department" options. I am not sure why it happened, but I just change the department and now it works fine.

ManishaMShetty commented 3 years ago

@fbartho Is this issue fixed ? I too facing the same issue with iOS device after upgrading RN to 0.63.1. This is working fine with lower version of RN version. This issue started after RN is updated to 0.63.1

jamie78 commented 3 years ago

Hey, I was able to fix this issue by not using those lines:

    tags: ['Not-working'],
    department: 'Not working',

Pls check last message to see which issue I was exactly facing, here: https://support.zendesk.com/hc/en-us/community/posts/1500000092482-Connection-error-chat-SDK-iOS-Flutter

shawnFallon commented 3 years ago

@jamie78 Thanks, I was racking my brain all last night! Removed the department and it all started working

Nevosis commented 3 years ago

@shawnFallon Thanks a lot, I don't know how or why, but it works