Before Getting Started
Overview
Clix leverages Firebase Cloud Messaging (FCM) to deliver notifications efficiently. The goal is to ensure a smooth integration process and reliable delivery of push notifications to your app users.Environment
- Flutter 3.0.0 or later
- Dart 2.17.0 or later
- iOS 14.0+ / Android API 21+
- Firebase configured in your Flutter app (Firebase setup guide).
- We recommend using
flutterfirefor the installation.
- We recommend using
Make sure you’ve completed the Firebase setup.If the setup is complete, the following items should be in place.
- Make sure GoogleService-Info.plist is in your project’s ios > Runner directory and google-services.json is in your project’s android > app > src directory.
- Upload the Service Account Key file to the Clix console.
Setup Clix - Manual Installation
Clix Flutter SDK only supports manual installation.
1. Install Dependencies
1. Install Dependencies
Add the Clix Flutter SDK dependency to your project’s Install dependencies:
pubspec.yaml:2. Add Initialization Code
2. Add Initialization Code
Initialize Firebase and Clix in your app’s entry point (Replace
main.dart):main.dart
YOUR_PROJECT_ID and YOUR_PUBLIC_API_KEY accordingly.3. Add Capabilities (iOS only)
3. Add Capabilities (iOS only)
To add Push Notification Capability,
- Select your app target.
- Go to the Signing & Capabilities tab.
- Click the + button and choose Push Notification from the list.
- Click the + button and choose Background Modes from the list.
- Then check ‘Remote notifications’.
4. Build and Run
4. Build and Run
Next Steps
Setup Notification Service Extension (iOS)
Complete the iOS setup by adding a Notification Service Extension to enable rich notifications with images and track delivery events.
Clix Flutter SDK
Check out the latest guides and API for the Clix Flutter SDK.
Setup Firebase
You need to set up Firebase before you start integrating it into your project.
Clix Sample Project - Flutter
If you’d like to see a working example, check out our sample project.