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.X.X' - ASAP SDK with default UI. (KB, Community and Tickets)
2. ‘com.zoho.desk:asap-api:4.X.X - ASAP SDK without UI. Serves as the API provider.
3. ‘com.zoho.desk:asap-siq:4.X.X - ASAP SalesIQ SDK
4. ‘com.zoho.desk:asap-chatkit:4.X.X - ASAP SDK Chat Kit SDK. (GC, BM, and Answer Bot)
  1. dependencies { implementation 'com.zoho.desk:asap:4.X.X' }
Add the following line to include the SalesIQ dependency if the app shows SalesIQ chat.
  1. dependencies { implementation 'com.zoho.desk:asap-siq:4.X.X' }
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.X.X' }
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 - 35
 •    targetSdkVersion - 35
 •    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

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        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 LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit

                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsFormstack alternativeEncrypted Forms

                              Wufoo alternativeSecure Forms

                              WCAG



                                        Create. Review. Publish.

                                        Write, edit, collaborate on, and publish documents to different content management platforms.

                                        Get Started Now







                                                          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


                                                                • Desk Community Learning Series


                                                                • Digest


                                                                • Functions


                                                                • Meetups


                                                                • Kbase


                                                                • Resources


                                                                • Glossary


                                                                • Desk Marketplace


                                                                • MVP Corner


                                                                • Word of the Day


                                                                • Ask the Experts


                                                                  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 Demo

                                                                                                    Get a personalized demo or POC

                                                                                                    REGISTER NOW


                                                                                                      Design. Discuss. Deliver.

                                                                                                      Create visually engaging stories with Zoho Show.

                                                                                                      Get Started Now









                                                                                                                          • Related Articles

                                                                                                                          • ASAP SDK Android - Release Notes

                                                                                                                            Please refer to the Release Notes page for further updates. 4.6.0 The old and new CAPTCHA mechanism is implemented to submit tickets. Enhanced ASAP SDK's accessibility, which includes content description for icons and vibration and haptic feedback. ...
                                                                                                                          • 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 ...
                                                                                                                          • Working with the ASAP SDK for Android

                                                                                                                            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 ...
                                                                                                                          • Working with the ASAP SDK for Flutter

                                                                                                                            This document pertains explicitly to help widgets created using the updated new ASAP Setup. If you use 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 Flutter Plugin 2.0. ...
                                                                                                                          • Introducing ASAP React Native SDK

                                                                                                                            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 React-Native SDK 3.0.0. You can use the ASAP React-Native SDK ...
                                                                                                                            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