How to Add ProProfs Chat SDK to Your Android App

 

Chat SDK allows you to add a chat interface to your android apps for your customers. Integrating the chat SDK helps connect you with your customers and assists them with their queries, enhancing the real-time chat interface.
 
This article shows how to install the ProProfs Chat SDK on Android using the JitPack repository. 

 

 

Benefits of ProProfs Chat SDK in Android:

 

  • Quickly integrate Chat SDK with pre-written code.

  • Offers better scalability for a large user base.

 

How to Install the ProProfs Chat Library for Android With Gradle

 

In your Andriod Studio, first, we have to initiate the integration process.  

 

Step 1: Add the following JitPack repository to your root build.gradle at the end of repositories::

 

allprojects {

        repositories {

            ...

            maven { url 'https://jitpack.io' }

        }

}

 

Step 2: Add the following dependency:

 

dependencies {

       implementation 'com.github.ProProfs-Workflow:chat_android_sdk:0.0.1'

}

 

 

Step 3: Navigate to “MainActivity” in the sidebar and insert the following  code to add the chat bubble inside a layout to use SDK:

 

class MainActivity : AppCompatActivity() {

        private var siteId: String = "<your-site-id>"

        override fun onCreate(savedInstanceState: Bundle?) {

            super.onCreate(savedInstanceState)

            setContentView(R.layout.activity_main)

            val layout = findViewById<LinearLayout>(R.id.layout_id)

            val bubble = ProProfsChat(this, siteId).init()

            layout.addView(bubble) 

        }

}        


 

 

 

Step 4: Log in to your ProProfs Live Chat account.

 

Step 5: Navigate to Channels > SDK, and enable the SDK using the toggle button.

 

 

ProProfs Chat SDK will be successfully integrated with your Android App.

 

 

This is how the Proprofs Chat will appear on your Android app:

 

 

That is all about installing the ProProfs Chat SDK in Android.

 

 

Was this information helpful?

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please make sure you spelled the page name correctly or use the search box.

add chat to your website