acs_chat 0.1.1 copy "acs_chat: ^0.1.1" to clipboard
acs_chat: ^0.1.1 copied to clipboard

A Flutter plugin for Azure Communication Services Chat

pub package License: MIT Platform

A Flutter plugin to integrate Azure Communication Services (ACS) Chat features using native Android/iOS SDKs.


✨ Features #

  • ✅ Real-time chat using ACS
  • ✅ Send & receive messages
  • ✅ Listen for incoming messages
  • ✅ Listen for messages sent successfully
  • ✅ Native implementation using platform channels
  • 🔜 Coming soon: Calling support via ACS Calling SDK

🚀 Getting Started #

1. Add dependency in pubspec.yaml #

dependencies:
  acs_chat: ^0.1.1

2. Prerequisites #

To use this package, you need to have the following values from your Azure Communication Services (ACS) setup:

  • accessToken: A valid ACS user access token generated from your backend using the Azure SDK. It must include the chat scope.
  • threadId: The ID of the chat thread you want to join. You can create one using the Azure SDK.
  • userId: The ACS user identity (e.g., 8:acs:...) that matches the user the token was issued for.
  • endpoint: The ACS resource endpoint, e.g., https://<your-resource>.communication.azure.com.

💡 If you're new to ACS, follow the official quickstart to create users, generate tokens, and create chat threads.


3. Initialize Chat #

After obtaining all required values, initialize the chat session:

await AcsChat.initChat(
  token: 'YOUR_ACCESS_TOKEN',
  userId: 'YOUR_USER_ID',
  threadId: 'YOUR_THREAD_ID',
  endpoint: 'https://YOUR_RESOURCE.communication.azure.com',
);

Maintainers #

  • LinkedIn
  • LinkedIn
4
likes
150
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for Azure Communication Services Chat

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on acs_chat

Packages that implement acs_chat