Resources
SDK changelog
Release notes for the STINGIM web widget, Android SDK and iOS SDK.
Release notes for the client SDKs. The web widget is served from app.stingim.com and updates automatically; the mobile SDKs are versioned releases you download from SDK downloads.
Web widget — host protocol v2 (2026-11-20)
- Calls to
window.stingImmade before the widget is ready are queued and delivered in order. - New
onReady(cb),stingImSettings.onReadyand thestingim:ready,stingim:state,stingim:identity,stingim:errorevents. identify()andlogout()return aPromise<boolean>; signed identity with optionalexp(identity verification).hide()is now a real hidden state;getStatus()reportshidden,identityStatus,erroranddestroyed.- New
destroy()for single-page apps; loading the install code twice is a no-op. - The script can be placed in
<head>. - A rejected configuration hides the widget and logs one clear
[stingim] Chat widget disabled: …error. - Privacy: query strings are stripped from reported URLs except
utm_*,stg_tag,stg_landkeepQueryParams. - Configurable AI disclosure line in the widget.
Android SDK 1.1.0 (2026-11-23)
AI replies are presented like replies from your team. Public API changes are additive only; upgrading only needs the new version number.
- The widget setting
ai_presentationis read from the server (StingimPluginConfig.getAiPresentationMode(),isAiSeamless(),getPersonaName(),getPersonaAvatar(),isHandoffNoticeEnabled()); when it is missing the mode is seamless. Only an explicitassistantmode keeps the previous AI label. - In seamless mode AI replies use the same bubble and avatar as agent replies and show the team name: the message sender name, then the configured persona name, then the widget title, then a localized "Support". Internal bot names are never shown.
- Local notifications for AI replies use the same team name.
- The AI disclosure line stays, shown once at the start of the chat when you enable it in the console.
- New
StingimPersonahelper (robotDisplayName,robotAvatar,looksLikeBotName) for apps with their own chat UI. com.stingim:stingim-channel:1.1.0fromhttps://stingim.com/sdk/maven— see SDK downloads.
iOS SDK 1.1.0 (2026-11-23)
AI replies are presented like replies from your team. Public API changes are additive only; upgrading only needs the new version number.
StingimPluginConfigreadsai_presentation(aiPresentationMode,isAISeamless,personaName,personaAvatar,handoffNotice); when it is missing the mode is seamless. Only an explicitassistantmode keeps an AI label.- StingimChannelUI: AI replies render as normal team bubbles with the same avatar as agent replies instead of a centred notice.
- New
StingimPersonahelper for apps with their own chat UI:robotDisplayName(_:config:)(sender name, then persona name, then widget title, then a localized "Support"),robotAvatar(_:config:),looksLikeBotName(_:),isSystemNotice(_:),genericTeamName(language:). - The AI disclosure line stays, shown once at the start of the chat when you enable it in the console.
StingimChannel-1.1.0.zipandStingimChannel-1.1.0.podspec— see SDK downloads.
Android SDK 1.0.0 (2026-11-21)
First stable release. The public API and behaviour are identical to 1.0.0-rc.4.
- Licence: the SDK is free to use under the new STINGIM SDK Licence (use with the STINGIM service only), replacing the earlier commercial-agreement notice.
com.stingim:stingim-channel:1.0.0fromhttps://stingim.com/sdk/maven— see SDK downloads.
iOS SDK 1.0.0 (2026-11-21)
First stable release. The public API and behaviour are identical to 1.0.0-rc.4.
- Licence: the SDK is free to use under the new STINGIM SDK Licence; podspec licence type
Proprietary. StingimChannel-1.0.0.zipandStingimChannel-1.0.0.podspec— see SDK downloads.
Android SDK 1.0.0-rc.4 (2026-11-20)
Push notifications (Firebase Cloud Messaging) and public distribution. Public API changes are additive.
- Push token registration:
StingimPush.setPushToken(context, fcmToken)uploads the device token; it is re-sent automatically after login, identity switch and token recovery. The SDK has no Firebase dependency — your app addsfirebase-messagingand forwards tokens and messages. StingimPush.isStingimMessage,handleRemoteMessage(local notification, suppressed while the chat is visible) andhandleOpenIntent(opens the chat from a tapped notification).Stingim.disconnect()removes this device's push registration before clearing the visitor token.- While a push token is registered, the socket closes shortly after the app goes to the background and resyncs missed messages on return.
StingimPushServiceand the push-token APIs work again (FCM only on Android).- Distribution: Maven repository
https://stingim.com/sdk/mavenand direct AAR download — see SDK downloads.
iOS SDK 1.0.0-rc.4 (2026-11-20)
Push notifications (APNs, optional FCM) and public distribution. Public API changes are additive.
Stingim.shared.registerPushToken(_:completion:)(APNs),registerFCMToken(_:completion:),unregisterPushToken(completion:); tokens are re-registered after everystart(...)and removed ondisconnect()before the visitor token is cleared.- While a push token is registered, the socket closes in the background and resyncs on return (opt out with
StingimConfig.closeSocketInBackgroundWhenPushEnabled = false). StingimPushhelpers for payload parsing, foreground presentation and notification taps;StingimPushUIopens the built-in chat from a notification.- Deprecated push names (
registerAPNsToken,uploadPushToken) forward to the new implementation instead of throwingunsupported. - Distribution: CocoaPods podspec
https://stingim.com/sdk/ios/StingimChannel.podspecand source zip for a local Swift package — see SDK downloads.
Android SDK 1.0.0-rc.3 (2026-11-20)
Compatibility release for the current backend, verified end to end against production. Public API changes are additive; removed backend features are deprecated no-ops.
Fixed
- WebSocket authenticates with
Authorization: Bearer; heartbeat follows the server'shello_ok; arate_limitederror fails only the affected send. - First message works without an existing conversation; the real conversation id is adopted automatically.
- Media uses direct storage upload (
{object_key, file_name, file_size}) and signed preview URLs. - Ratings use the server's rating invitation and
max_score. - History timestamps are parsed correctly (previously every message showed "now").
- Offline messages send
message,emailand an idempotency key.
Added
- Token lifecycle: tokens persisted with Android Keystore AES-GCM; invalid tokens are cleared;
StingimAuthListener,Stingim.setAuthListenerand typedStingimError. - Signed identity:
StingimIdentity,Stingim.init(context, pluginId, appSecret, channelId, identity, callback),getIdentityStatus()/isIdentityVerified(). - Interactive messages (buttons, quick replies, cards) with
sendInteractionReply. - Streaming AI replies,
evaluation.completeandrobot.accesscallbacks. - AI disclosure and business-hours notice (
StingimConfig.setProjectId). - English UI by default with Chinese translation;
Accept-Languageon REST calls. - All callbacks run on the main thread.
Deprecated: push-token APIs, StingimApi.getConversationDetail, StingimMessageManager.sendReplyMessage, the 0–10 submitEvaluation overloads.
iOS SDK 1.0.0-rc.3 (2026-11-20)
Connectivity
- Bearer authentication with the
stingim.gateway.v1subprotocol. - Reconnects indefinitely (30 s back-off cap), immediately on foreground and network changes; heartbeat follows
hello_ok. - Fatal
unauthorizedreportsstingimDidFailAuthentication; direct mode re-bootstraps, token mode callsreauthenticationHandler. - New
stingimDidUpdateUnreadCount,stingimDidReceiveRobotReplyDeltaandstingimDidReceiveEvent.
Messaging and media
- First message works without an existing conversation.
- Direct storage upload replaces the removed upload endpoint (
uploadFiledeprecated); incoming media via signed preview URLs. - Interactive messages (
StingimInteractive,sendInteraction). - Correct timestamp parsing for messages, conversations and queue times.
Identity, ratings and more
start(pluginId:appSecret:channelId:identity:nickname:)with HMAC identity andidentityStatus.- Ratings use the server's rating invitation;
tenantIdno longer required. fetchPluginConfig()for AI disclosure and business hours, shown in the built-in UI.- Offline messages send
message,emailand an idempotency key. - Swift tools 6.0 / Xcode 16+.
- Source-breaking: exhaustive
switchstatements overStingimErrorneed the new cases. - Deprecated:
getConversationDetailand push-token APIs (throwunsupported).
Android & iOS 1.0.0-rc.2 (2026-09-06)
- A stored contact is restored only when both the contact id and its current token match the same plugin and channel; otherwise a new anonymous visitor is created.
- Switching to a different identity tears down the previous connection first.
initWithUser(Android) and the caller-selecteduserIdbootstrap (iOS) are deprecated: a business user id is not a credential.
Android & iOS 1.0.0-rc.1 (2026-09-04)
- Server-issued visitor token initialisation without embedding the App Secret.
- Stable local message IDs, acknowledgement reconciliation, resend after reconnect and history gap recovery.
- Android: voice messages in the built-in UI; reduced manifest permissions; API 23 minimum.
- iOS: SwiftPM and CocoaPods packaging, offline cache, privacy manifest, Swift 6 concurrency-safe API.
Found a mistake? Email [email protected]
