How to Integrate the ASAP SDK with your iOS app

How to Integrate the ASAP SDK with your iOS app

After successfully setting up the ASAP SDK on your iOS application, the next step is to integrate it.

Please follow either of the following two methods to perform these steps.

    I CocoaPods Integration

Add the Zoho Desk Portal SDK to the Podfile and install the SDK in your project.

1. First, include the SDK of your choice in the Podfile.

      a. To integrate the ASAP Core SDK (Tickets, Knowledge Base, Community, and Guided Conversations), include the following code in the do block of the     Podfile.
  1. pod 'ZohoDeskPortalCore'
      b. To integrate the ASAP Services SDK (Tickets, Knowledge Base, Community, Guided Conversations, and Chat), include the following code in the do block of the Podfile.
  1. pod 'ZohoDeskPortalServices'
2. Save the Podfile.

3. Execute the pod install or pod update command in Terminal.
To learn more about CocoaPods, read how to use  CocoaPods.

    II Manual Integration

1. Download the SDK of your choice.
      a. ASAP Core SDK (Tickets, Knowledge Base, Community, and Guided Conversations)

2. Decompress the zip file you downloaded. Next, drag and drop the respective framework file with the extension .XCFramework to the Frameworks, Libraries, and Embedded Content section of your Xcode project bundle.
If you choose to integrate the ASAP Core SDK, make sure to add the below four keys in the info—plist file of your app.
    1    NSPhotoLibraryUsageDescription
    2    NSCameraUsageDescription
    3    NSMicrophoneUsageDescription
    4    NSLocationWhenInUseUsageDescription

How to initialize the SDK on your iOS App 

Once the SDK integration is completed, you must initialize the ASAP SDK on your app.

The following three keys are crucial for the initialization:
    •    Org ID
    •    App ID
    •    Data Center

The values of these keys will appear under the Code Snippet section on the setup page of the ASAP help widget in Zoho Desk.

To initialize the SDK in your app, perform the following 2 steps:

1. Import the Zoho Desk Portal SDK framework into the AppDelegate file in your project.

Swift

  1. import ZohoDeskPortalAPIKit

Objective-C

  1. @import ZohoDeskPortalAPIKit;
2. Paste the following initialization code into the application method with the didFinishLaunchingWithOptions argument.

Swift

  1. func application(_ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions:
    [UIApplicationLaunchOptionsKey: Any]?) -> Bool
    {
    ZohoDeskPortalSDK.initialize(orgID:<#String#>, appID:<#String#>, dataCenter: <#ZDPDataCenter#>)
    return true
    }

Objective-C

  1. - (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
    [ZohoDeskPortalSDK
    initializeWithOrgID:<#NSString#>appID:<#NSString#>dataCenter:<
    #ZDPDataCenter#>];
    return YES;
    }
Data Centers (DCs), according to the deployment types:
CN - ZDPDataCenter.CN
EU - ZDPDataCenter.EU
US - ZDPDataCenter.US
IN - ZDPDataCenter.IN
AU - ZDPDataCenter.AU
JP - ZDPDataCenter.JP

    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION











                                        You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                            Manage your brands on social media

                                              Zoho Desk Resources

                                              • Desk Community Learning Series


                                              • Digest


                                              • Functions


                                              • Meetups


                                              • Kbase


                                              • Resources


                                              • Glossary


                                              • Desk Marketplace


                                              • MVP Corner


                                              • Word of the Day


                                                Zoho Marketing Automation

                                                  Zoho Sheet Resources

                                                   

                                                      Zoho Forms Resources


                                                        Secure your business
                                                        communication with Zoho Mail


                                                        Mail on the move with
                                                        Zoho Mail mobile application

                                                          Stay on top of your schedule
                                                          at all times


                                                          Carry your calendar with you
                                                          Anytime, anywhere




                                                                Zoho Sign Resources

                                                                  Sign, Paperless!

                                                                  Sign and send business documents on the go!

                                                                  Get Started Now




                                                                          Zoho TeamInbox Resources



                                                                                  Zoho DataPrep Resources



                                                                                    Zoho DataPrep Demo

                                                                                    Get a personalized demo or POC

                                                                                    REGISTER NOW


                                                                                      Design. Discuss. Deliver.

                                                                                      Create visually engaging stories with Zoho Show.

                                                                                      Get Started Now









                                                                                                          • Related Articles

                                                                                                          • Introducing ASAP iOS SDK

                                                                                                            Equipping the Help Center services as widgets to deliver instant assistance to your customers The ASAP SDK for iOS provides easy access to help your iOS app's end users. Using this SDK, you can create and customize a help widget within your app and ...
                                                                                                          • How to Integrate the ASAP SDK with React Native

                                                                                                            After successfully setting up the ASAP SDK on your mobile application, the next step is to integrate it. Please follow either of the following method to perform these steps. For Android applications, this step involves the use of Maven. The ASAP SDK ...
                                                                                                          • Introducing ASAP React Native SDK

                                                                                                            Equipping the Help Center services as widgets to deliver instant assistance to your customers The ASAP SDK for Android/iOS provides easy access to help your mobile app's end users. Using this SDK, you can create and customize a help widget within ...
                                                                                                          • Introducing ASAP Flutter Apps SDK

                                                                                                            Equipping the Help Center services as widgets to deliver instant assistance to your customers The ASAP SDK for Android/iOS provides easy access to help your mobile app's end users. Using this SDK, you can create and customize a help widget within ...
                                                                                                          • Working with the Zoho GC SDK for iOS

                                                                                                            Mobile applications have proven to be a significant component of business with the advent of smartphones. Businesses offer a range of services through their mobile phone applications for better customer engagement. To improve users' interest in apps, ...
                                                                                                            Wherever you are is as good as
                                                                                                            your workplace

                                                                                                              Resources

                                                                                                              Videos

                                                                                                              Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                              eBooks

                                                                                                              Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                              Webinars

                                                                                                              Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                              CRM Tips

                                                                                                              Make the most of Zoho CRM with these useful tips.



                                                                                                                Zoho Show Resources