iOS SDK: the articleUiConfig.showContactOptions not hiding the contact support button when viewing an article



Posted Oct 12, 2022

Hello,

I'm attempting to hide the "Contact us" button that is displayed when viewing an article using articleUiConfig.showContactOptions, but setting this to false does not seem to be working in iOS. It is currently being disabled as expected when listing all articles, or a section of articles, however, not for viewing a specific article.

Here's the code:

This code results in the Contact us button still appearing in the top right corner.

Has anyone else encountered this with the iOS SDK?

Thanks,

Scott


1

8

8 comments

Hi Eric,

Thank you for the response.
I tested and tried to replicate my issue with the sample (contact-options-example branch) link you provided.

Using the sample and adding my zendesk app config details, when running build, it successfully worked :)
The contact support button is removed from the articles.

0


Hey Folks, 

I've been doing some testing and it seems that there is most likely a bug with this method. Though I believe I've found a workaround while the dev team works on resolving. I've made some changes to the sample that we provide for the support sdk to include the articleConfig in the buildHelpCenterOverviewUI method. Can you please try replicating your issue with this sample (please make sure use the contact-options-example branch) and let me know the results? 
 
Thanks!

2


Hi Eric, 
What will be the next point of action? 

1


Thanks for the response Erik! As Rochelle has suggested, the button is always showing up for me as well.

0


Hi Eric, 
I am currently facing the exact same issue as Scott on iOS and the button is always showing on the article.

1


Hey Scott,

Apologies that I missed your reply! Looks like there is an issue with our documentation. I'll raise that with the appropriate team. It looks like this could possibly be a bug. Is the button always showing in the article view or only sporadically? 

1


Hi Eric,

Appreciate the response! I originally started with the `articleUiConfig.hideContactSupport` property per those docs, unfortunately, it would appear that the docs are incorrect/outdated. From the version I currently have of the SDK, the property now appears to be named `showContactOptions`. I just reconfirmed this based on your suggestion.

 

I found a reference to this documentation inaccuracy in this community posting as well: https://support.zendesk.com/hc/en-us/community/posts/4411989959194-ZDKHelpCenterUiConfiguration-settings

One thing I'll restate is that the showContactOptions option works successfully when viewing a listing of articles, or a section list of articles, it's only when viewing an article directly that this appears, and only on iOS. Android's approach is working successfully.

Any thoughts on how I might proceed?

Thanks,

Scott

0


Hey Scott,

I'm pretty sure that you want to use `articleUiConfig.hideContactSupport = true` here. 

Relevant documentation

Hope this helps!

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post