📔

Flutter Guide[Eng]

ChannelTalk SDK Flutter Sample Project

This document is a guide that explains how to use the sample project for integrating the ChannelTalk SDK in a Flutter development environment. For detailed implementation instructions, please refer to the GitHub repository linked below.
GitHub Repository: https://github.com/channel-io/channel-flutter-sample

Project Overview

This project was created to test how to use ChannelTalk SDK in Flutter. It provides practical implementation examples that Flutter developers can reference before adopting ChannelTalk SDK.

Important Notice

While Channel Talk does not have a dedicated Flutter SDK, we do provide guides and sample projects to assist our clients in using it. Please understand that these guides and sample projects may not be updated as frequently as other resources. This project is a sample code that implements bridge code to enable the use of native Android/iOS SDKs within Flutter. When using this in a production environment, please ensure thorough testing and verification.

SDK Installation Guide

For detailed information on ChannelTalk SDK installation and project setup:

Installation Resources

English Installation Guide - Step-by-step installation guide

Additional Setup Guides

English Push Notification Guide - Firebase FCM + ChannelTalk Integration
English ChannelIOManager Guide - Implementation, Usage, Reuse Guide

Official Documentation

iOS SDK Guide: https://developers.channel.io/docs/ios-quickstart
Android SDK Guide: https://developers.channel.io/docs/android-quickstart
ChannelTalk Developer Documentation: https://developers.channel.io/
ChannelTalk Support Center: https://channel.io

Sample Project Execution Method

Important: Firebase FCM configuration is required to run this sample project. Push notification functionality will not work without proper Firebase setup.

1. Project Clone and Setup

# 1. Clone project git clone https://github.com/channel-io/channel-flutter-sample cd channeltalk_sample # 2. Install Flutter dependencies flutter pub get # 3. Install iOS dependencies (when building for iOS) cd ios && pod install && cd ..
Bash
복사

2. ChannelTalk Configuration

// Set plugin key in lib/main.dart file await channelIO.boot( pluginKey: "YOUR_PLUGIN_KEY", // ← Change to actual plugin key // ... other settings );
Dart
복사

3. Firebase Configuration (Required)

1.
Create Firebase Project in Firebase Console
URL: https://console.firebase.google.com/
2.
Add Android/iOS apps to the project
3.
Download configuration files:
google-services.jsonandroid/app/
GoogleService-Info.plistios/Runner/
4.
Enable Firebase Cloud Messaging in Firebase Console
5.
Configure push notification credentials in ChannelTalk Admin

4. Run App

# Run in debug modeflutter run # Release build flutter build apk --release # Android flutter build ios --release # iOS
Bash
복사