최근 검색
최근 검색 없음

Sadev
가입한 날짜: 2024년 11월 13일
·
마지막 활동: 2024년 11월 13일
팔로잉
0
팔로워
0
총 활동 수
1
투표 수
0
플랜 수
0
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Sadev
Sadev님이 에 게시물을 만듦
게시물 Developer - Zendesk SDKs
Hello Zendesk Support,
I am encountering an issue with file uploads in the Zendesk Chat SDK when using a custom ChatAPIConfiguration
in my app. Here are the details and steps I have taken:
-
Configuration Setup:
- I initialize
ChatAPIConfiguration
with visitor information such as name, email, and phone number retrieved from user session data. The configuration is then assigned toChat.instance?.configuration
. - File uploads do not work as expected; the
ChatAttachmentMessage
log shows alocalURL
for the file but lacks an uploadedurl
, which I assume means the upload hasn’t completed successfully.
- I initialize
-
Code Details: Below is a summary of the configuration and initialization code being used:
var chatAPIConfig: ChatAPIConfiguration { let chatAPIConfig = ChatAPIConfiguration() guard let email = session.object(forKey: "user.email") as? String, let firstName = session.object(forKey: "user.name") as? String, let lastName = session.object(forKey: "user.last_name") as? String, let phoneNumber = session.object(forKey: "user.mobile_phone") as? String else { return chatAPIConfig } chatAPIConfig.visitorInfo = VisitorInfo(name: "\(firstName) \(lastName)", email: email, phoneNumber: phoneNumber) return chatAPIConfig } func initialize() { setChatLogging(isEnabled: true, logLevel: .verbose) Chat.initialize(accountKey: accountKey) } func openZendesk() { do { initialize() Chat.instance?.configuration = chatAPIConfig let viewController = try Messaging.instance.buildUI(engines: engines, configs: []) viewController.navigationItem.title = "Live Chat" self.navigationController?.show(viewController, sender: self) } catch { self.showSimpleAlert(title: "Error", message: "Error Zendesk") } }
-
Troubleshooting Steps Taken:
- Confirmed that file uploads are enabled in Zendesk Chat settings.
- Ensured that the file size is within limits (325 KB).
- Enabled verbose logging with
Logger.isEnabled = true
andLogger.defaultLevel = .verbose
, but there are no specific error messages indicating why the file does not upload. - Tested on both the simulator and a real device to rule out environment-specific issues.
Could you provide guidance on resolving this issue or suggest additional troubleshooting steps? Thank you for your assistance!
2024년 11월 13일에 게시됨 · Sadev
0
팔로워
0
투표 수
0
댓글