Overview

Zoho SalesIQ Mobile SDK will let you embed the tracking and live chat widget code in your existing IOS mobile application. Using which, you can track and converse with the visitors hitting your website right away from your mobile application. You can customize the SDK embedded in your application using the following IOS SDK APIs(copy-paste the API codes inside the “import” tag of your application class).

Note:
Zoho SalesIQ is GDPR Compliant! The configurations for website and Mobile SDK remains the same if you have already configured on your site it will be automatically reflected in Mobile SDK as well. If not, then learn how to configure now.

Installing Live Chat on your iOS Mobile Application

The SalesIQ SDK code has to be implemented in your application code to get the widget on your application.

Requirements

The iOS SDK is compatible with iOS version 9 and above.Also, make sure that you are running Xcode of version 10.0 in your development environment.

How to Embed the SDK into Your Mobile Application?

Install using Cocoapods:

Step 1: To add ZohoSalesIQ SDK to your app, you should add Mobilisten pod to the podfile. 

 
# Demo target name
target 'Demo' do
     use_frameworks!
     pod ‘Mobilisten’
end

 

Step 2: Once the required pods are added, open the terminal and run the pod install command in the project directory. 

Note:If you are yet to set up the CocoaPods for your app, then run the pod init command from the root of your project directory. Running this command will creates the required podfile.

Install Manually:

 

Step 1: In Xcode, go to Build Phases -> Embedded Binaries -> Click (+) to add a new library.

Step 2: Click Add Other in the Choose frameworks and libraries to add.

Step 3: Add the Mobilisten.framework.

Step 4: Choose Copy items if needed in the Destination.

Step 5: After which the added framework will be displayed under the Embedded Binaries and the Linked Frameworks and Libraries.

Step 6: Then, link the libicucore.A.tbd,libicucore.tbd.

Step 7: Update Info.plist.

If you haven't, then you should update the Info.plist with the keys and descriptions for your application given below.

Step 8: Implement the below code in the class imported.

For Swift:

import "Mobilisten"

 

For Objective-C:

#import <Mobilisten/Mobilisten.h>

  • Then, insert the App key and Access key in the code. The code will look as follows when the App key and Access key is inserted:

 

For Swift:

 
ZohoSalesIQ.initWithAppKey(APP KEY, accessKey:  ACCESS KEY) { (completed) in }
  

For Objective-C:

 
[ZohoSalesIQinitWithAppKey:APP KEY accessKey:ACCESS KEY completion:^(BOOL completed) { }];
  

Example on how to insert the code on your application:

 
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool
  {
     ZohoSalesIQ.initWithAppKey("Jve9A%2FFqxjnTjfT7YjHr3zKHoj4Prq6wXRmnJ", accessKey:"0Al2AB7GufM9S3GJmV1uUGGcony166WluKrtkzGYsozC0GsEEigVEDzfPtmmM0N8X")
      return true
  }

 

Note:
By default, if you wish to display the chat button/bubble on the application, then use the ZohoSalesIQ.showLiveChat(true) API.

Step 8: Once the code is embeded, you can view the Live Chat on your application.