What are the configuration settings for the ASAP iOS SDK?

What are the configuration settings for the ASAP iOS SDK?

ASAP configuration 

You can turn on or off the following options from the application end.
    •    SideMenu
    •    Language chooser
    •    Zoho footer, "powered by ASAP label."
By default, all the options are enabled.
To turn off the above-mentioned options, include the following code snippet:

Swift

  1. let configuration = ZDPConfiguration()
    configuration.disableSidemenu = true
    configuration.disableLanguageChooser = true
    configuration.disablePoweredByZoho = true
    ZDPortalConfiguration.set(configuration: configuration)

Objective-C

  1. ZDPConfiguration * configuration = [ZDPConfiguration init];
    configuration.disableSidemenu = YES;
    configuration.disableLanguageChooser = YES;
    configuration.disablePoweredByZoho = YES;
    [ZDPortalConfiguration setWithConfiguration:configuration];

Security configuration

We have provided support to secure the content by disabling the following things,

  • Clipboard. (Copy/paste)
  • Upload/download the attachment.
  • Screenshot.
  • Screen recording.

Swift

  1. let securityConfiguration = ZDPSecureContentConfiguration()

    securityConfiguration.disableDownloadAttachment = true

    securityConfiguration.disableUploadAttachment = true

    securityConfiguration.disableScreenShot = true

    securityConfiguration.disableCopyPaste = true       
    ZDPortalConfiguration.setZDPSecureConfiguration(configuration: securityConfiguration)

Objective-C

  1. ZDPSecureContentConfiguration * securityConfiguration = [ZDPSecureContentConfiguration init];

    securityConfiguration.disableScreenShot = YES;

    securityConfiguration.disableCopyPaste = YES;

    securityConfiguration.disableUploadAttachment = YES;

    securityConfiguration.disableDownloadAttachment = YES;

    [ZDPortalConfiguration setZDPSecureConfigurationWithConfiguration:securityConfiguration];

Customize your Chat Brand 

If your ASAP setup lacks chat functionality but you have a brand in SalesIQ, you can now load the same SalesIQ Livechat brand within the ASAP SDK by providing the AppKey and AccessKey. This allows your end-users to contact your agents via chat.
The bundle ID configured with the brand and the app must be identical.

Swift

  1. import ZohoDeskPortalConfiguration
    ...
    ZDPortalConfiguration.setChatBrandDetails(appKey: "Chat App key", accessKey: "Chat Access key")

Objective-C

  1. @import ZohoDeskPortalConfiguration;
    ...
    [ZDPortalConfiguration setChatBrandDetailsWithAppKey:@"Chat App key" accessKey:@"Chat Access key"];

What is SDK Logging?

Enabling the console log allows you to track error messages and identify and resolve errors that may arise during execution.
By default, the SDK logs are turned off.
To enable the logs, include the following code snippet:

Swift

  1. import ZohoDeskPortalAPIKit
    ...
    ZohoDeskPortalSDK.enableLogs()

Objective-C

  1. @import ZohoDeskPortalAPIKit;
    ...
    [ZohoDeskPortalSDK enableLogs];