gpt4 book ai didi

ios - "Ticket failed to send"到 Zendesk

转载 作者:行者123 更新时间:2023-12-01 17:47:30 25 4
gpt4 key购买 nike

我正在尝试将 Zendesk 反馈 View 集成到我的 iOS 应用程序中。我也可以打开 Zendesk 窗口,但是当我尝试向 Zendesk 发送反馈时,它失败并显示“票证发送失败”消息。以下是我所做的步骤:

  • 在 appdelegate 中初始化 Zendesk SDK:

    ZDKConfig.instance().initialize(withAppId: "APPID",zendeskUrl: "https://sumeet07.zendesk.com ",clientId: "mobile_sdk_client_CLIENTID")
  • 然后我使用下面的代码来显示 Zendesk 反馈表:

    ZDKRequests.presentRequestCreation(with: rootViewController)

    它显示了反馈表,但是当我尝试提交反馈时,它显示错误。

  • Please see the screenshot

    可能是我问的问题格式不好,但可能你能理解我到底在问什么。

    谢谢

    最佳答案

    只需在 didFinishLaunchingWithOptions 中添加以下行,
    let identity = ZDKAnonymousIdentity()
    ZDKConfig.instance().userIdentity = identity

    并确保 AppId、zendeskUrl 和 clientId 与 Zendesk 中的相同。

    关于ios - "Ticket failed to send"到 Zendesk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45433408/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com