Recent searches
No recent searches
Chat screen gets stuck on loading state - iOS ZendeskSDKMessaging
Posted Jan 19, 2024
Hi guys!
Our team is having an issue where the chat screen does not load correctly after tapping on a push notification, curiously, it is working fine when the chat is presented after the user taps on a button.
IOS ZendeskSDKMessaging: 2.17.0
The SDK initialization is this:
let zendeskKey = ...
Zendesk.initialize(withChannelKey: zendeskKey, messagingFactory: DefaultMessagingFactory(), completionHandler: processResult)
This is the code that handles the Zendesk push notifications:
PushNotifications.handleTap(userInfo) { viewController in }
We have tried to use the viewController passed in on this completionHandler, and the the view controller returned by this API: Zendesk.instance?.messaging?.messagingViewController(), but none of these approaches have worked real
A few days ago the redirection was working fine, but since today it is just not loading, and we are not sure about what we could be doing wrong.
Thanks in advance!
0
1 comment
Ezequiel Galindo
I figured that you cannot call Zendesk.instance?.messaging?.messagingViewController() inside the completion handler of
It just causes weird behavior, it seems somehow invalidates the view controller that is passed in on the completion handler.
Removing this call inside the handler fixed the issue for me. I just had a logging by the way.
0
Sign in to leave a comment.