Send Push Notifications
This guide explains how to set up Firebase credentials, compose push notifications, and send them to your app's users directly from the OpenLynk dashboard.
Prerequisites
- An OpenLynk app with the SDK integrated in your mobile app
- A Firebase project with Firebase Cloud Messaging (FCM) enabled
- The OpenLynk SDK configured to handle push notifications in your app (see Set Up Push Notifications)
Upload Firebase Credentials
Before you can send push notifications, you need to upload your Firebase service account credentials to OpenLynk.
- Go to the Firebase Console and select your project.
- Navigate to Project Settings → Service accounts.
- Click Generate new private key.
- Confirm and download the JSON file.
- In the OpenLynk dashboard, go to your app's Settings.
- Under Firebase Credentials, click Upload and select the downloaded JSON file.
- Click Save.
The Firebase service account JSON file contains sensitive credentials. Do not commit it to version control or share it publicly. OpenLynk stores it securely and uses it only to send notifications on your behalf.
Test the Firebase Connection
After uploading credentials, verify the connection is working:
- Go to your app's Settings → Firebase Credentials.
- Click Test Connection.
- A success message confirms that OpenLynk can communicate with Firebase Cloud Messaging.
If the test fails, verify that:
- The JSON file is a valid Firebase service account key (not a web API key).
- FCM is enabled in your Firebase project.
- The service account has the required permissions.
Send a Push Notification
- Open the Push Notifications page in the dashboard.
- Select the app you want to send a notification for.
- Compose your notification:
| Field | Required | Description |
|---|---|---|
| Title | Yes | The notification title displayed to the user |
| Body | Yes | The notification message content |
| Destination Path | No | A deep link path (e.g., /promo/spring-sale) that opens when the user taps the notification |
| Additional Data | No | Custom key-value pairs passed to your app |
- Choose your target audience:
- All Devices — send to all registered devices
- iOS Only — send only to iOS devices
- Android Only — send only to Android devices
- Click Send.
Including a destination path turns your push notification into a deep link notification. When the user taps it, the app opens and navigates directly to the specified path. This is a powerful way to drive engagement with specific content.
View Delivery and Open Statistics
After sending a notification, you can track its performance:
- Go to the Push Notifications page.
- View the notification history list.
- Each notification shows:
- Total sent count
- Delivery count and rate
- Open count and rate
Delivery and open statistics may take a few minutes to fully populate after sending a notification.
Verification
After completing setup, confirm the following:
- Firebase credentials are uploaded and the test connection succeeds.
- A test notification is received on a physical device with your app installed.
- Tapping a notification with a destination path navigates to the correct screen in your app.
- Delivery and open statistics appear on the Push Notifications page.
What's Next
- Set Up Push Notifications (SDK) — integrate push notification handling in your mobile app.
- View Analytics — track push notification performance alongside link analytics.
- Create and Manage Links — create deep links to use as notification destinations.