Push Configuration
Configure push notification credentials, manage audience segments, compose notifications, and view analytics. All setup is done from the AppsOnAir web portal. This setup is done once per app and applies to all platforms (Android, iOS, React Native, Flutter).
Accessing Push Notifications
From the AppsOnAir console, select your app and navigate to Push Notifications from the left sidebar. If no credentials have been configured yet, you will see the setup wizard with a three-step flow: Connect platforms → Install the SDK → Send a test.
Step 1: Configure iOS Credentials
Push delivery on iOS requires an Apple Push Notification service (APNs) credential. The console accepts an APNs Auth Key (.p8).
APNs Auth Key (.p8)
Auth keys never expire and work across all your apps under the same Apple Developer account.
-
In Apple Developer, go to Certificates, Identifiers & Profiles > Keys.
-
Create a new key, give it a name, and enable Apple Push Notifications service (APNs). Click Configure.
-
Under Environment, select Sandbox & Production. Click Save, then Continue, and download the
.p8file.
Select Sandbox & ProductionAppsOnAir requires a single key that works in both environments. Selecting Sandbox only or Production only will cause push delivery to fail in one environment. This setting cannot be changed after saving. You would need to delete and recreate the key if you choose the wrong environment.
-
Note the Key ID shown on the key detail page, and your Team ID (found under Membership).
-
In the console, open the Apple iOS panel of the setup wizard, upload the
.p8file, and fill in the Key ID, Team ID, and App Bundle ID. Click Save.
Step 2: Configure Android Credentials
Push delivery on Android requires a Firebase Cloud Messaging (FCM) credential. The console accepts your Firebase project's service account JSON file.
-
Open the Firebase Console, select your project.
-
Go to Project Settings → Service Accounts.
-
Click Generate new private key and download the JSON file.
-
In the console, open the Google Android panel of the setup wizard, upload the JSON file, and enter your Android Package Name. Click Save.
The service account JSON is stored securely and is never exposed in the SDK or API responses. Keep a backup of the file. It cannot be downloaded from the console after upload.
Once both credentials are saved, navigate to Push Notifications → Push settings → Credentials to confirm that both Apple APNs and Google FCM show as Verified.
Step 3: Install the SDK
After connecting both platforms, go to Push Notifications → Push settings → SDK setup. Select your platform and follow the installation instructions to add the SDK to your app.
Step 4: Get Your API Keys
The SDK and REST API use two keys to identify your app. Find them under App Settings > Keys & IDs in the AppsOnAir console.
| Key | Description |
|---|---|
| App ID | Unique identifier for your app. Used to initialise the SDK via AppsonairAppId. |
| API Key | Secret key for REST API access. Never expose this in your mobile app or public repos. |
Do not embed your API Key in your mobile app or commit it to a public repo. Use it only in server-to-server requests from your backend.
Sending a Notification
Go to Push Notifications → Send Notification to compose and dispatch a notification directly from the console without writing any code.
Compose the Message
| Field | Description |
|---|---|
| Title | Headline displayed in bold on the device. Supports per-language values. |
| Message | Body text of the notification. |
| Image URL | HTTPS URL of an image to attach (requires NSE on iOS). |
| Tap URL | Deep link or web URL opened when the user taps. |
| Action Buttons | Up to 4 buttons, each with a label and optional URL. |
| Custom Data | Key-value pairs delivered to the app alongside the notification. |
| Notification Name | Internal label shown in the analytics dashboard only. |
Advanced Options
Configure action buttons and platform-specific delivery settings from the Advanced panel.
Choose Your Audience
Target who receives the notification. The Delivery option at the bottom of this screen controls when the notification is sent. Currently only Send Now is supported. Scheduled delivery is coming soon.
| Option | Use when |
|---|---|
| All Subscribed Users | Broadcast to every opted-in device |
| Segment | Send to a saved audience segment (see Segments below) |
| Filters | Build an ad-hoc audience by tag, language, country, or session activity |
| User ID | Target one or more known users by the ID set via login() in the SDK |
| Device ID | Target a specific device by its AppsOnAir subscription ID |
Test Device
Send a notification to a specific test device without affecting real users. This is ideal for QA and verifying your SDK integration.
- In the console, go to Push Notifications → Test Device, enter the device's subscription ID or scan the QR code shown in the SDK debug logs.
- Send a notification. Only devices marked as test devices will receive it.
Enable LogLevel.VERBOSE in the SDK during development to print the subscription ID to the console. Copy it from there into the Test Device screen.
Segments
Segments are reusable, named audiences you can target repeatedly without rebuilding filters each time. Go to Push Notifications → Segments.
Creating a Segment
- Click Create Segment and give it a name.
- Add filter rules: tag values, country, language, session count, or session recency.
- Combine rules using AND (all must match) or OR (any must match).
- Save. The segment is now available in the audience picker when sending a notification.
Built-in Segments
The following segments are always available without any configuration:
| Segment | Devices included |
|---|---|
| All | Every device that has ever registered, regardless of opt-in state |
| Subscribed Users | Devices that are currently opted-in to receive push notifications |
Users & Devices
Browse and inspect registered users and devices under Push Notifications → Users and Push Notifications → Devices.
| Column | Description |
|---|---|
| External ID | The user ID set via login() in the SDK |
| Opted In | Whether the device is currently subscribed to push |
| Test Device | Toggle to mark a device for test sends only |
| Platform | Android or iOS |
Analytics
Track notification performance under Push Notifications → Analytics.
| Metric | Description |
|---|---|
| Total Recipients | Number of subscribed devices matched at send time |
| Sent | Messages accepted by FCM / APNs |
| Delivered | Messages confirmed as delivered to the device (requires NSE on iOS) |
| Opened | User tapped the notification and the app opened |
| Failed | Messages rejected by FCM / APNs (invalid token, unregistered device, etc.) |
Click any send job row to view a breakdown by platform (Android vs iOS) and a timeline of delivery events.
Notification History
All sent notifications are listed under Push Notifications → History & Analytics with their status, recipient count, and delivery metrics. You can also retry failed jobs or duplicate an existing notification as a starting point for a new one.
Click any row to open the Send Detail view for a full breakdown of that send including targeting, delivery progress, message content, and a live device preview.
| Section | What it shows |
|---|---|
| Recipients / Sent / Delivered / Opened | Top-level delivery funnel for this send |
| Details | Message name, ID, and source (Console or API) |
| Audience | Target audience and total recipient count |
| Message | Title, subtitle, message body, and action buttons with their behaviours |
| Apple iOS / Google Android | Platform-specific options used (badge, sound, mutable content, priority) |
| Advanced Settings | Time to live, Collapse ID |
| Preview | Approximate rendering on iPhone and Android lock screen |
Migrating from OneSignal
If you are moving from OneSignal to AppsOnAir Push Notifications, you can import your existing subscribers so you can reach them from day one, without waiting for each user to reopen the app.
Apple and Google issue push tokens against your APNs key and Firebase project, not your previous provider. An imported device stays reachable only if the same APNs .p8 key and Firebase service account you used with OneSignal are also uploaded to AppsOnAir. If you used a shared or provider-issued credential in OneSignal, the imported tokens will not be deliverable.
Step 1: Open Import Subscribers
After your credentials are saved, the Install the SDK setup screen shows a Migrating from OneSignal? Import devices option in the bottom-right corner. Click Import devices to open the Import Subscribers wizard.
Step 2: Confirm credentials (wizard step 1)
The first step of the wizard asks you to confirm three things before importing:
- You used your own Apple
.p8key and Firebase service account with your previous provider. - That same APNs key and Firebase service account are uploaded to AppsOnAir.
- You understand that imported tokens are a snapshot that fades over time until the SDK is installed on each device.
The right side of this screen shows the required CSV column names and verifies your uploaded credentials.
The CSV exported from OneSignal must include all of the following columns:
external_id, onesignal_id, player_id, channel, push_token, first_session, last_active, sessions, usage_duration, subscribed
Rows with no push token or where the device is unsubscribed are excluded from the import automatically.
Click Continue once your credentials show as Verified.
Step 3: Export subscribers from OneSignal
-
In OneSignal dashboard, go to Audience > Users & subscriptions.
-
Click the columns icon (top-right) and make sure Push token, External ID, Language code, Country, and Tags are selected.
-
Click Export (top-right), then in the dialog click Export again. OneSignal sends the CSV to your email when it is ready.
Include unsubscribed records is unchecked by default. You can leave it unchecked — unsubscribed rows are excluded from the AppsOnAir import automatically, so including them in the file does no harm either way.
Step 4: Upload your export (wizard step 2)
Upload the CSV from OneSignal directly on the Upload your export step. The wizard accepts files up to 50 MB.
Handling large files. OneSignal exports over 50 MB must be split before uploading. Download the split_onesignal_csv.py script, place it next to your exported CSV, and run:
python3 split_onesignal_csv.py your_export.csv
This generates a split_output folder. Upload each file in that folder separately.
After the upload completes, click Start import to finish.