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.
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
ChannelTalk SDK does not officially support Flutter and is not optimized for Flutter.
This project is not an official support project, so the content may differ from the latest version.
This project is an unofficial integration method that implements bridge code to use native Android/iOS SDK in Flutter.
Please conduct thorough testing and verification before using in actual production environments.
SDK Installation Guide
For detailed information on ChannelTalk SDK installation and project setup:
Installation Resources
Additional Setup Guides
Official Documentation
•
•
•
•
Sample Project Execution Method
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.json → android/app/
•
GoogleService-Info.plist → ios/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
복사