Introduction
Atelerix uses Firebase Cloud Messaging (FCM) to deliver push notifications on Android and iOS. After you complete the Flutter installation, follow the platform steps below to enable push delivery in your app.Make sure you have initialized the SDK with
Atelerix.init() before configuring push notifications.Android configuration
No additional SDK setup is required for Android. You only need to add your Firebasegoogle-services.json file to the project.
- Create or open your app in the Firebase Console.
- Download
google-services.jsonfor your Android app. - Upload the file to the Atelerix dashboard.
iOS configuration
You need an active Apple Developer account to send push notifications on iOS.Set up APNs authentication
- In the Apple Developer portal, go to Certificates, Identifiers & Profiles → Keys.
- Create a new key with Apple Push Notifications service (APNs) enabled.
- Download the
.p8authentication key and note the Key ID. You can only download the key once. - Upload the
.p8file to the Atelerix dashboard.
AppDelegate configuration
Add the following overrides toios/Runner/AppDelegate.swift:
AppDelegate.swift
Huawei configuration
Coming Soon Huawei push notification support is not available yet. Check back soon for setup instructions.Flutter code
Callawait Atelerix.notifications.init() to initialize notifications.
Call await Atelerix.notifications.requestPermissions() to request notification permissions.
main.dart