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