crisp_chat 3.1.0
crisp_chat: ^3.1.0 copied to clipboard
Crisp live chat for Flutter on Android, iOS, Web, and desktop. Native SDKs on mobile, plus push notifications, helpdesk, bots, and chat events.
Crisp Chat for Flutter #

Add Crisp live chat to your Flutter app on Android, iOS, Web, macOS, Windows, and Linux, with one Dart API.
On mobile, the plugin wraps the official native Crisp SDKs. On Web and desktop, it embeds the official Crisp Web Chat SDK. Push notifications, a helpdesk, bot scenarios, chat events, and session data work across platforms with the same code.
π Documentation Β· π Quick start Β· π API reference Β· π§ͺ Example app Β· π Changelog
Highlights #
- π¬ Live chat everywhere: the native Crisp UI on Android and iOS, the official chatbox on Web, and an embedded WebView on desktop.
- π€ Know your users: email (with identity verification), nickname, phone, avatar, company, session data, and segments.
- π Push notifications: Firebase on Android and APNs on iOS, with an option to open your app first and then the chatbox.
- π Helpdesk: open the Crisp knowledge base search, or go straight to an article.
- π€ Bots and local messages: trigger Crisp Bot scenarios, and greet visitors with welcome texts, pickers, or carousels.
- π‘ Chat events: react when a session loads, the chat opens or closes, or a message is sent or received.
- π¨ Make it yours: light, dark, or automatic color mode, and iOS presentation styles.
- π Video and audio calls: built into the iOS SDK, with no extra setup.
Platform Support #
| Feature | Android | iOS | Web | DesktopΒΉ |
|---|---|---|---|---|
| Live chat, user and session data, helpdesk, bot scenarios, local messages | β | β | β | β |
| Session identifier and unread count (REST) | β | β | β Β² | β Β² |
isSessionOngoing() and CrispConfig.colorMode |
β | β | β | β |
CrispConfig.locale (chat language)Β³ |
β | β | β | β |
Chat events (onCrispEvent) and push notifications |
β | β | β | β |
| Video and audio calls | β | β | β | β |
ΒΉ macOS, Windows, and Linux, in an embedded WebView. Without WebView support, the chat opens in the system browser and most other APIs do nothing. Β² On Web, keep your Crisp REST credentials on a backend proxy, not in the app. Β³ On Android and iOS the chat follows the app's language; see Chat language.
The full API matrix lists every method.
Installation #
flutter pub add crisp_chat
Then complete the setup for each platform you target:
| Platform | What you need | Guide |
|---|---|---|
| Android | minSdkVersion 23, compileSdkVersion 36, and the INTERNET permission |
Android setup |
| iOS | iOS 14+ and Xcode 16.3+. Add NSCameraUsageDescription and NSMicrophoneUsageDescription to Info.plist; without them the chat won't start. |
iOS setup |
| Web | Nothing to install; the Crisp script loads at runtime. Allow *.crisp.chat if you use a Content Security Policy. |
Web setup |
| Desktop | No code changes. macOS needs the network client entitlement, Windows needs WebView2, and Linux needs WebKitGTK. | Desktop setup |
Important: On Android and iOS, turn off Lock the chatbox to website domain in your Crisp dashboard (Settings β Website Settings β Chatbox & Email Settings β Chatbox Security). Otherwise the chat fails with "Error starting chat". Learn more.
Quick Start #
Copy your Website ID from the Crisp dashboard (Settings β Website Settings), then open the chat:
import 'package:crisp_chat/crisp_chat.dart';
final config = CrispConfig(
websiteID: 'YOUR_WEBSITE_ID',
user: User(email: 'jane@example.com', nickName: 'Jane'), // optional
);
await FlutterCrispChat.openCrispChat(config: config);
When the user logs out, clear their token and reset the session so the next user doesn't see their conversation:
await FlutterCrispChat.setTokenId(null);
await FlutterCrispChat.resetCrispChatSession();
If you use a token ID, set it on login the same way, without opening the chat: configure(websiteId: ...), then setTokenId(user.id), then resetCrispChatSession(). See Session Management.
Each feature has its own guide:
| Feature | API | Guide |
|---|---|---|
| Configuration | CrispConfig (token ID, segment, color mode, iOS presentation style) |
Configuration |
| Users and companies | User, Company, setUserEmail and other user setters, identity verification |
User & Company |
| Sessions | configure, setTokenId, setSessionString, setSessionSegments, pushSessionEvent, getSessionIdentifier, isSessionOngoing |
Session Management |
| Helpdesk | openHelpdesk, openHelpdeskArticle |
Helpdesk |
| Bots and local messages | runBotScenario, showMessage, CrispConfig.localMessages |
Local Messages |
| Chat events | onCrispEvent stream |
Chat Events |
| Unread messages | getUnreadMessageCount, markMessagesAsRead (Crisp REST API) |
Unread Messages |
| iOS extras | Presentation styles, video calls | iOS Features |
Push Notifications #
Crisp sends push notifications through Firebase Cloud Messaging on Android and APNs on iOS. Setup takes four steps:
- Connect Firebase and upload your credentials to Crisp
- Register the notification service on Android
- Enable push and register for remote notifications on iOS
- Open the chat when a notification is tapped
Try the Example App #
git clone https://github.com/alamin-karno/flutter-crisp-chat.git
cd flutter-crisp-chat/example
flutter run -d chrome --dart-define=websiteId=YOUR_WEBSITE_ID # or -d macos, -d windows, -d linux
Running the example on Android or iOS also needs Firebase config files; the contributing guide explains how to add them.
Stuck? Check common issues and the FAQ, or open an issue.
Native SDK Versions #
| SDK | Version |
|---|---|
| Crisp Android SDK | 2.0.25 |
| Crisp iOS SDK | ~> 3.1.1 (Swift Package Manager or CocoaPods) |
| Crisp Web Chat SDK | Loaded at runtime from client.crisp.chat |
| Flutter / Dart | >= 3.44.0 / >= 3.5.0 |
Used By #
Using crisp_chat in production? Open a pull request to add your app here.
Support the Project #
If crisp_chat saves you time, you can help keep it maintained:
- β Star the GitHub repository and π like it on pub.dev
- β Buy me a coffee or become a Patreon supporter
- π οΈ Contribute a fix or feature: start with the contributing guide
Maintainer and Contributors #
Maintained by Md. Al-Amin, with help from these contributors:
Credits and License #
The Crisp Android, iOS, and Web Chat SDKs are owned and maintained by Crisp IM SAS. This plugin is an independent, community-maintained project.
Released under the MIT License.