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
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
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
복사