For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Step
Description

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