The ASAP SDK also provides you with the option to fix errors that occur while using the add-on. This is made possible by SDK logging.
To enable logging for the SDK, include the following code snippet.
ZDPortalConfiguration.enableLogMessages = true
ZDPortalConfiguration.enableLogMessages = YES;
After enabling SDK logging, you can check the console log for the errors and take necessary action.