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 GoolgeServies-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