How to Integrate the ASAP SDK with your Android app  

How to Integrate the ASAP SDK with your Android app

AlertThis document pertains explicitly to help widgets created using the updated ASAP Setup 4.0 Version.
Info
Please note that if you are using an older version of ASAP, the help widgets will be read-only. To utilize the new ASAP widgets on your App, use the latest ASAP SDK 4.0.
Once you have established the ASAP SDK, the next step is to integrate it using Maven.

Include the following code in the root-level build.gradle file to integrate the SDK with your app.
  1. repositories

    {

    google()

    mavenCentral()

    maven {

    url "https://maven.zohodl.com/"

    }

    maven {

    url "https://downloads.zohocdn.com/wmslibrary"

    }

    }

Notes
The ASAP SDK was developed using Android Architecture Components. Therefore, the app code must include maven.google.com/google().
Next, include the dependency required for the SDK.

Include the dependency code required in the dependencies section of the app-level build.gradle file.

1. ‘com.zoho.desk:asap:4.0.1' - ASAP SDK with default UI. (KB, Community and Tickets)
2. ‘com.zoho.desk:asap-api:4.0.1 - ASAP SDK without UI. Serves as the API provider.
3. ‘com.zoho.desk:asap-siq:4.0.1 - ASAP SalesIQ SDK
4. ‘com.zoho.desk:asap-chatkit:4.0.1 - ASAP SDK Chat Kit SDK. (GC, BM, and Answer Bot)
  1. dependencies { implementation 'com.zoho.desk:asap:4.0.1' }
Add the following line to include the SalesIQ dependency if the app shows SalesIQ chat.
  1. dependencies { implementation 'com.zoho.desk:asap-siq:4.0.1' }
Add the following line to include the Chat Kit dependency if the app shows any of the modules from the chat kit. (GC, BM and Answer Bot)
  1. dependencies { implementation 'com.zoho.desk:asap-chatkit:4.0.1' }
Notes
Replace the X with the latest version of ASAP SDK. Refer to the release notes for all the versions.
You have successfully integrated the SDK with your app.

The configuration details of the ASAP SDK are as follows:
 •    compileSdkVersion - 33
 •    targetSdkVersion - 33
 •    minSdkVersion - 23
 •    org.jetbrains.kotlin:kotlin-stdlib:1.8.0

How to initialize the SDK on your Android 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 appear under the Install your widget on a website or mobile app section on the setup page of the ASAP help widget in Zoho Desk.

To initialize the SDK in your app, add the following code snippet to a subclass of the Application class.
  1. import android.app.Application;
    import com.zoho.desk.asap.api.ZohoDeskPortalSDK;

    public class MyApplication extends Application {
    public static ZohoDeskPortalSDK apiProvider;
    @Override
    public void onCreate() {
    super.onCreate();
    ZohoDeskPortalSDK.Logger.enableLogs();
    apiProvider = ZohoDeskPortalSDK.getInstance(getApplicationContext());
    apiProvider.initDesk(orgId, appId, datacenterValue);
    }
    }
Notes
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
SA - ZDPDataCenter.SA
CA - ZDPDataCenter.CA

    Access your files securely from anywhere

      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






                          Quick Links Workflow Automation Data Collection
                          Web Forms Enterprise Begin Data Collection
                          Interactive Forms Workplace Data Collection App
                          Offline Forms Customer Service Accessible Forms
                          Digital Forms Marketing Forms for Small Business
                          HTML Forms Education Forms for Enterprise
                          Contact Forms E-commerce Forms for any business
                          Lead Generation Forms Healthcare Forms for Startups
                          Wordpress Forms Customer onboarding Order Forms for Small Business
                          No Code Forms Construction RSVP tool for holidays
                          Free Forms Travel
                          Prefill Forms Non-Profit

                          Intake Forms Legal

                          Form Designer HR

                          Card Forms Food
                          Assign Forms Photography

                          Translate Forms Real Estate
                          Electronic Forms

                          Notification Emails for Forms Alternatives
                          Holiday Forms Google Forms alternative 
                          Form to PDF Jotform alternative





                                            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 Android SDK

                                                                                                                This document pertains explicitly to help widgets created using the updated new ASAP Setup. Please note that if you are using an older version of ASAP, the help widgets will be read-only. To enable the new ASAP widgets on your app, use the latest ...
                                                                                                              • ASAP SDK Android - Release Notes

                                                                                                                4.0.1 If users want to use/show the chat kit (GC, BM and Answer Bot). They can also integrate the ASAP Chat Kit separately. Refer here for more details. We have removed the ASAP chat-kit bundle from the asap bundle. Integrated the latest version of ...
                                                                                                              • How to customize the ASAP SDK Android Help Widget UI?

                                                                                                                The ASAP SDK allows you to customize the UI of the help widget as required. Predefined themes The SDK UI comes with two predefined themes: light and dark. Customized themes You can also override the default dark and light themes to make the SDK look ...
                                                                                                              • How to change your language settings for ASAP Android SDK?

                                                                                                                The ASAP SDK supports 47 languages. You can set any language of your choice based on the geographical location of your app's end-users. Below are the 47 language codes that help you set the language for the ASAP help widget. Language Local Code ...
                                                                                                              • How to customize the ASAP SDK Flutter Help Widget UI?

                                                                                                                The ASAP SDK allows you to customize the UI of the help widget as required. Predefined themes The SDK UI comes with two predefined themes: light and dark. Android iOS Setting up a theme type You can customize the theme type in the SDK help widget ...
                                                                                                                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