How to Add ProProfs Chat SDK to Your Android App

 

ProProfs Chat SDK enables seamless integration of a chat interface into your Android apps, facilitating real-time communication with your customers and enhancing their experience. This guide will walk you through the steps to install the ProProfs Chat SDK using the JitPack repository, providing you with the benefits of quick integration and scalability for a large user base.

 

Benefits of ProProfs Chat SDK in Android:

 

  • Rapid Integration: Quickly embed chat functionalities with our pre-written code.
  • Scalability: Efficiently manage a growing user base without compromising performance.
  • Enhanced User Experience: Facilitate immediate communication, improving user support and engagement.

 

How to Install the ProProfs Chat Library for Android With Gradle

 

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

 

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'
}

 

adding the dependency

 

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) 
        }
}        

 

adding chat bubble to sdk 

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

 

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

 

navigate to sdk settings

 

By following this comprehensive guide, you have successfully integrated the ProProfs Chat SDK into your Android app. Enjoy the benefits of streamlined customer communication and improved user experience!

 

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

 

chat widget on android

 

That is all about installing the ProProfs Chat SDK in Android. If you encounter any issues or have any questions, don't hesitate to reach out to our support team.

 

 

© 2005 - 2024 ProProfs
-
add chat to your website