react-native-zendesk-chat icon indicating copy to clipboard operation
react-native-zendesk-chat copied to clipboard

Connection failed on iOS

Open amserhii11 opened this issue 4 years ago • 31 comments

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 avatar Feb 18 '21 12:02 amserhii11

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

amserhii11 avatar Feb 18 '21 14:02 amserhii11

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?

fbartho avatar Feb 18 '21 18:02 fbartho

@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 avatar Feb 22 '21 12:02 amserhii11

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

amserhii11 avatar Feb 22 '21 12:02 amserhii11

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

fpena avatar Feb 25 '21 17:02 fpena

@fpena did you fix it?

amserhii11 avatar Mar 03 '21 10:03 amserhii11

@fpena did you fix it?

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

fpena avatar Mar 08 '21 14:03 fpena

@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.

amserhii11 avatar Mar 08 '21 20:03 amserhii11

@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.

fpena avatar Mar 10 '21 05:03 fpena

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

rahulmr-rently avatar Mar 11 '21 12:03 rahulmr-rently

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

amserhii11 avatar Mar 11 '21 13:03 amserhii11

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.

jamie78 avatar Mar 11 '21 15:03 jamie78

@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 avatar Mar 12 '21 13:03 amserhii11

@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?

amserhii11 avatar Mar 12 '21 15:03 amserhii11

@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 avatar Mar 12 '21 15:03 fpena

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

It didn't work for me without appId.

fpena avatar Mar 12 '21 15:03 fpena

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

amserhii11 avatar Mar 12 '21 15:03 amserhii11

@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.

fpena avatar Mar 12 '21 15:03 fpena

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

amserhii11 avatar Mar 12 '21 15:03 amserhii11

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?

jamie78 avatar Mar 12 '21 15:03 jamie78

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

amserhii11 avatar Mar 12 '21 15:03 amserhii11

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

amserhii11 avatar Mar 12 '21 16:03 amserhii11

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.

amserhii11 avatar Mar 12 '21 17:03 amserhii11

@amserhii11 what exactly was wrong? :)

jamie78 avatar Mar 13 '21 00:03 jamie78

@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!

Giosanu avatar Mar 18 '21 09:03 Giosanu

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!

fbartho avatar Mar 18 '21 17:03 fbartho

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.

amserhii11 avatar Mar 18 '21 17:03 amserhii11

@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

ManishaMShetty avatar Apr 05 '21 09:04 ManishaMShetty

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

jamie78 avatar Apr 06 '21 11:04 jamie78

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

shawnFallon avatar Apr 30 '21 02:04 shawnFallon