How to Start and Join a Popin Conference using the Android SDK
This guide explains how to start and join a Popin conference using the Popin Capture API and the Popin Android SDK. You’ll first capture a customer using an API call, then use the SDK to initialize and start a conference between the customer and your agent.
⚙️ Prerequisites
Make sure you’re using Popin Android SDK version 1.7.3 or higher.
🏗 Step 1: Add Popin SDK to Your Android Project
1️⃣ Add JitPack Repository
In your settings.gradle file, add the following inside dependencyResolutionManagement:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}2️⃣ Add Popin SDK Dependency
In your module-level build.gradle file:
💡 Use version 1.7.3 or above for the latest fixes and features.
📜 Step 2: Configure AndroidManifest.xml
Add the following entries to your AndroidManifest.xml:
🔁 Replace <your_token_here> with your Popin API key (available in your Popin Dashboard).
This same key will be used in both API and SDK calls.
🧩 Step 3: Capture Customer via API
Use the Capture API to register a customer and generate a unique slug for the conference.
🔹 Endpoint
POST https://api.popin.to/api/capture
🔹 Example Request
🔹 Example Response
📌 Note down the slug (e.g., "3e21-a564") — you’ll need it to start the conference.
📱 Step 4: Initialize and Start the Popin Conference
You can now initialize Popin and start the conference in one step.
Example Code
Parameter Reference
Agent ID → Your agent’s unique ID from the Popin Dashboard
Slug → The value returned from the Capture API (
"3e21-a564", for example)API Key → Your Popin Dashboard API key
🔔 Step 5: Handle Conference Events
Use the PopinConferenceEventListener to handle join and failure events.
✅ Summary
1
Add Popin SDK to your Android project
2
Configure your AndroidManifest.xml
3
Capture customer via API and get slug
4
Initialize Popin and start the conference
5
Handle conference events
Last updated