"Chat with an Agent" not starting chat

Answered

3 Comments

  • Eric Nelson
    Zendesk Developer Advocacy
    Hey Adam,

    Can you share code snippets of how you're initializing the chat and answerbot engines? 

    Thanks!
    0
  • Adam Rowe

    I've done this with and without the ZDKSupport SDK to no avail.

    NSString *appId = [ReactNativeConfig envFor:@"NX_ZENDESK_APP_ID"];
    NSString *clientId = [ReactNativeConfig envFor:@"NX_ZENDESK_CLIENT_ID"];
    NSString *zendeskUrl = [ReactNativeConfig envFor:@"NX_ZENDESK_URL"];
    [ZDKZendesk initializeWithAppId:appId
    clientId:clientId
    zendeskUrl:zendeskUrl];

    // [ZDKSupport initializeWithZendesk: [ZDKZendesk instance]];
    [ZDKAnswerBot initializeWithZendesk:[ZDKZendesk instance] support:nil];

    NSString *apiUrl = [ReactNativeConfig envFor:@"NX_ZENDESK_API_KEY"];
    [ZDKChat initializeWithAccountKey:apiUrl queue:dispatch_get_main_queue()];
    0
  • Eric Nelson
    Zendesk Developer Advocacy
    Hey Adam,

    Unfortunately we don't support using a wrapper (like React Native) to interact with the sdk and is most likely why you're running into issues. You can read more about it here

    Sorry for the inconvenience!
    0

Please sign in to leave a comment.

Powered by Zendesk