Chat screen gets stuck on loading state - iOS ZendeskSDKMessaging



2024년 1월 19일에 게시됨

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

댓글 1개

I figured that you cannot call  Zendesk.instance?.messaging?.messagingViewController() inside the completion handler of 

PushNotifications.handleTap(userInfo)

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


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물