15-day Pro trial · no credit cardStart free →

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

AndroidiOS
Minimum OSAndroid 6.0 (API 23)iOS 13.0
LanguageJava 17 bytecode, usable from KotlinSwift 6 (Xcode 16+)
InstallMaven repository https://stingim.com/sdk/maven or AAR downloadCocoaPods podspec or local Swift package (source zip)
Built-in chat UIStingim.startChat(...)StingimChatViewController / StingimChatView (SwiftUI)
Custom UIMessage, conversation and file managersStingim.shared + StingimDelegate
Token storageAndroid Keystore (AES-256-GCM)Keychain
GuideAndroid SDKiOS 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/maven and depend on com.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

  1. In the console open Settings → Channels → App SDK and click Add app.
  2. Copy the Plugin ID and App Secret. The App Secret is shown only once, right after creation.
  3. 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.

Text
 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 ◀──────┘
  1. Production (recommended) — your server exchanges the App Secret for a visitor token and hands the app contactId, contactToken and channelId. The app starts the SDK with the token (initWithToken on Android, start(contactId:contactToken:channelId:) on iOS).
  2. Development / controlled environments — the SDK exchanges pluginId + appSecret + channelId itself. Convenient for prototypes; do not use it in a public release.

Server-side token exchange

HTTP
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]"
}
FieldRequiredNotes
plugin_id, channel_id, app_secretyesYour App SDK credentials (strings).
agentyesA user-agent style description of the caller.
user_id, user_hash, user_hash_expnoSigned identity of the logged-in user — same scheme as the web widget.
user_name, user_emailnoDisplay attributes, not covered by the signature.
nicknamenoVisitor display name.

The response uses the standard envelope; check code === 0:

JSON
{ "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]