Skip to main content

crisp_chat 3.1.0 copy "crisp_chat: ^3.1.0" to clipboard
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 #

Crisp Chat

pub version pub likes pub points monthly downloads CI Docs License: MIT

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:

  1. Connect Firebase and upload your credentials to Crisp
  2. Register the notification service on Android
  3. Enable push and register for remote notifications on iOS
  4. 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:

Maintainer and Contributors #

Maintained by Md. Al-Amin, with help from these contributors:

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.

32
likes
160
points
13.3k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Crisp live chat for Flutter on Android, iOS, Web, and desktop. Native SDKs on mobile, plus push notifications, helpdesk, bots, and chat events.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#crisp #chat #live-chat #customer-support #communication

Funding

Consider supporting this project:

buymeacoffee.com
www.patreon.com

License

MIT (license)

Dependencies

desktop_webview_window, flutter, flutter_web_plugins, http, plugin_platform_interface, url_launcher, web

More

Packages that depend on crisp_chat

Packages that implement crisp_chat