Mobile SDKs
Overview
Add native in-app customer chat to Android and iOS apps with the STINGIM mobile SDKs.
The STINGIM mobile SDKs add native customer chat to your Android and iOS apps. Conversations land in the same console inbox as your website chat and other channels.
Stable release
The current version is 1.1.0 (2026-11-23) on Android and iOS. The public API is stable within the 1.x line. See the changelog.
Platforms
| Android | iOS | |
|---|---|---|
| Minimum OS | Android 6.0 (API 23) | iOS 13.0 |
| Language | Java 17 bytecode, usable from Kotlin | Swift 6 (Xcode 16+) |
| Install | Maven repository https://stingim.com/sdk/maven or AAR download | CocoaPods podspec or local Swift package (source zip) |
| Built-in chat UI | Stingim.startChat(...) | StingimChatViewController / StingimChatView (SwiftUI) |
| Custom UI | Message, conversation and file managers | Stingim.shared + StingimDelegate |
| Token storage | Android Keystore (AES-256-GCM) | Keychain |
| Guide | Android SDK | iOS SDK |
Download the SDKs
Both SDKs are free to download from this site — no account, token or Git access is needed:
- Android: add the Maven repository
https://stingim.com/sdk/mavenand depend oncom.stingim:stingim-channel:1.1.0, or download the AAR. See Android install. - iOS: CocoaPods with the podspec
https://stingim.com/sdk/ios/StingimChannel.podspec, or the source zip as a local Swift package. See iOS install.
SDK downloads lists every version with SHA-256 checksums, release notes and the licence. To use the SDK in an app you need a STINGIM project and the App SDK credentials below.
Get your credentials
- In the console open Settings → Channels → App SDK and click Add app.
- Copy the Plugin ID and App Secret. The App Secret is shown only once, right after creation.
- You also need the app's channel ID. If it is not displayed for your App SDK app, ask support for it.
The "Quick start" snippets shown in the console's App SDK panel are generic placeholders. Follow the platform guides on this site for the real API.
How authentication works
The App Secret identifies your app to STINGIM. Anyone who has it can create visitors in your project, so do not ship it inside your app for production.
Your app ── login ──▶ Your server ── POST /v1/contact/open-create-contact ──▶ api.stingim.com
▲ │ (app_secret + optional signed user) │
└── contactId, contactToken, channelId ◀──────────── token, contact_id ◀──────┘- Production (recommended) — your server exchanges the App Secret for a visitor token and hands the app
contactId,contactTokenandchannelId. The app starts the SDK with the token (initWithTokenon Android,start(contactId:contactToken:channelId:)on iOS). - Development / controlled environments — the SDK exchanges
pluginId+appSecret+channelIditself. Convenient for prototypes; do not use it in a public release.
Server-side token exchange
POST https://api.stingim.com/v1/contact/open-create-contact
Content-Type: application/json
{
"plugin_id": "<plugin id>",
"channel_id": "<channel id>",
"app_secret": "<app secret>",
"agent": "my-backend/1.0",
"user_id": "u_123",
"user_hash": "<hex HMAC-SHA256>",
"user_hash_exp": 1767225600,
"user_name": "Jane Doe",
"user_email": "[email protected]"
}| Field | Required | Notes |
|---|---|---|
plugin_id, channel_id, app_secret | yes | Your App SDK credentials (strings). |
agent | yes | A user-agent style description of the caller. |
user_id, user_hash, user_hash_exp | no | Signed identity of the logged-in user — same scheme as the web widget. |
user_name, user_email | no | Display attributes, not covered by the signature. |
nickname | no | Visitor display name. |
The response uses the standard envelope; check code === 0:
{ "code": 0, "message": "Success", "data": { "token": "…", "contact_id": "…", "is_new": true, "identity_status": "verified", "identity_verified": true } }Return data.contact_id, data.token and your channel_id to the app. The visitor token is valid for 7 days; fetch a new one when the SDK reports that the token is invalid.
With a verified identity, the same user_id maps to the same contact on every device, so the customer sees their history after reinstalling the app or switching phones. Identity verification is configured per app with the same secret and modes as the web widget; if the Identity option is not shown for App SDK apps in your console, contact support to enable it.
Next steps
Found a mistake? Email [email protected]
