Recent searches
No recent searches
Unified SDK not working in iOS
Posted Mar 29, 2022
I have implemented the Unified SDK as instructed in the documentation and also on the sample app provided.
Initializing all parts seem to work fine since no error is thrown, and the view controller is built and presented successfully.
Init calls (keys are redacted):
ZendeskCoreSDK.Zendesk.initialize(appId: "", clientId: "", zendeskUrl: "")
SupportProvidersSDK.Support.initialize(withZendesk: ZendeskCoreSDK.Zendesk.instance)
AnswerBot.initialize(withZendesk: ZendeskCoreSDK.Zendesk.instance, support: SupportProvidersSDK.Support.instance!)
Chat.initialize(accountKey: "")
Build UI calls:
let answerBotEngine = try AnswerBotEngine.engine()
let supportEngine = try SupportEngine.engine()
let chatEngine = try ChatEngine.engine()
let sessionViewController = try Messaging.instance.buildUI(engines: [answerBotEngine, supportEngine, chatEngine], configs: [messagingConfiguration])
I have a valid flow saved, but it doesn't really load - not even the first item in the flow. Right off the bat, it says: "Uh-oh. Sorry, something's up. I can't answer questions right now."
Then it offers to leave a message or chat to an agent. If I choose "leave a message" it says "Something went wrong and I wasn't able to send your message. Please try again later."
What would be possible reasons for this?
0
7
7 comments
Eric Nelson
In your buildUI method, do you have a catch block for error handling? If so what are the errors that are being output?
0
André Santos
Hey Eric,
I do have a catch block around all throwing functions called to build the UI itself, and none throw errors.
0
Eric Nelson
Very odd, what version of the SDK and dependencies are you running? Is this happening across multiple device types?
0
support
We are also facing a similar issue with the Android SDK integration.
The web works fine and iOS has not been tested yet.
I'm suspecting the issue may be caused by the incorrect retrieval/setting of the parameter values (i.e. appId, clientId, zendeskURL, accountKey).
Can you confirm whether this is done correctly from our end:
1. appId & clientId:
{zendeskURL}/chat/agent#account/api_&_sdks
2. accountKey:
Top right dropdown > Check Connection > Account Key
SDK versions and depedencies used:
api group: 'com.zendesk', name: 'messaging', version: '5.2.3'
api group: 'com.zendesk', name: 'support', version: '5.0.8'
api group: 'com.zendesk', name: 'chat', version: '3.3.4'
Many thanks
1
Adam Rowe
I'm having the same issue. Eric Nelson did you ever find a solution for André Santos's issue?
0
Eric Nelson
Can you provide some more details about your issue? What SDK version are you running and with what engines? Some code snippets would be great!
Thanks!
0
Adam Rowe
Eric Nelson,
I ended up getting this resolved by updating our API Key for Chat. A previous developer was using the api key from the web widget script.
0