Skip to main content

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.

Push Notifications setup wizard - Step 1: Connect platforms, showing Apple iOS and Google Android credential panels

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.

  1. In Apple Developer, go to Certificates, Identifiers & Profiles > Keys.

  2. Create a new key, give it a name, and enable Apple Push Notifications service (APNs). Click Configure.

    Apple Developer - Register a New Key with APNs enabled
  3. Under Environment, select Sandbox & Production. Click Save, then Continue, and download the .p8 file.

    Apple Developer - Configure Key: select Sandbox & Production environment
    Select Sandbox & Production

    AppsOnAir 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.

  4. Note the Key ID shown on the key detail page, and your Team ID (found under Membership).

  5. In the console, open the Apple iOS panel of the setup wizard, upload the .p8 file, 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.

  1. Open the Firebase Console, select your project.

  2. Go to Project Settings → Service Accounts.

  3. Click Generate new private key and download the JSON file.

    Firebase Console - Project Settings - Service Accounts - Generate new private key
  4. In the console, open the Google Android panel of the setup wizard, upload the JSON file, and enter your Android Package Name. Click Save.

    Push Notifications setup wizard - Google Android panel with service account JSON upload and Android Package Name
important

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.

Push settings - Credentials tab showing Apple APNs and Google FCM both 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.

Push settings - SDK setup tab showing platform selection and SDK installation instructions

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.

App Settings - Keys and IDs showing App ID and API Key
KeyDescription
App IDUnique identifier for your app. Used to initialise the SDK via AppsonairAppId.
API KeySecret key for REST API access. Never expose this in your mobile app or public repos.
Keep your API Key secret

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​

FieldDescription
TitleHeadline displayed in bold on the device. Supports per-language values.
MessageBody text of the notification.
Image URLHTTPS URL of an image to attach (requires NSE on iOS).
Tap URLDeep link or web URL opened when the user taps.
Action ButtonsUp to 4 buttons, each with a label and optional URL.
Custom DataKey-value pairs delivered to the app alongside the notification.
Notification NameInternal label shown in the analytics dashboard only.
Send notification - compose title, message, image URL and deep link

Advanced Options​

Configure action buttons and platform-specific delivery settings from the Advanced panel.

Advanced - Action buttons with Button ID, Label, and URL

Advanced - iOS options: Sound, Badge, Thread ID, Interruption level, Attachment URL

Advanced - Android options: Priority, Channel ID, Sound, Click action

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.

Audience selection - Everyone, Segment, Specific people, Test devices, and Delivery section
OptionUse when
All Subscribed UsersBroadcast to every opted-in device
SegmentSend to a saved audience segment (see Segments below)
FiltersBuild an ad-hoc audience by tag, language, country, or session activity
User IDTarget one or more known users by the ID set via login() in the SDK
Device IDTarget 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.

  1. 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.
  2. Send a notification. Only devices marked as test devices will receive it.
Test Devices list with Send test and Remove actions
tip

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.

Segments - empty state with Create segment button

Creating a Segment​

  1. Click Create Segment and give it a name.
  2. Add filter rules: tag values, country, language, session count, or session recency.
  3. Combine rules using AND (all must match) or OR (any must match).
  4. 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:

SegmentDevices included
AllEvery device that has ever registered, regardless of opt-in state
Subscribed UsersDevices 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.

Users list - External ID, Language, Country, First and Last active

Devices list - device name, platform, state, opted-in status, and test device toggle
ColumnDescription
External IDThe user ID set via login() in the SDK
Opted InWhether the device is currently subscribed to push
Test DeviceToggle to mark a device for test sends only
PlatformAndroid or iOS

Analytics​

Track notification performance under Push Notifications → Analytics.

Analytics dashboard - performance metrics and recent sends
MetricDescription
Total RecipientsNumber of subscribed devices matched at send time
SentMessages accepted by FCM / APNs
DeliveredMessages confirmed as delivered to the device (requires NSE on iOS)
OpenedUser tapped the notification and the app opened
FailedMessages 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.

Send Detail - full breakdown of one send with recipients, delivery stats, message content, action buttons, and iPhone preview
SectionWhat it shows
Recipients / Sent / Delivered / OpenedTop-level delivery funnel for this send
DetailsMessage name, ID, and source (Console or API)
AudienceTarget audience and total recipient count
MessageTitle, subtitle, message body, and action buttons with their behaviours
Apple iOS / Google AndroidPlatform-specific options used (badge, sound, mutable content, priority)
Advanced SettingsTime to live, Collapse ID
PreviewApproximate 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.

Tokens only transfer if you used your own credentials

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.

AppsOnAir Install the SDK screen - Migrating from OneSignal? Import devices card in bottom-right

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 .p8 key 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.

Import Subscribers - Step 1: Confirm credentials, checklist and required CSV columns

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​

  1. In OneSignal dashboard, go to Audience > Users & subscriptions.

  2. Click the columns icon (top-right) and make sure Push token, External ID, Language code, Country, and Tags are selected.

    OneSignal - select columns including Push token, External ID, Language code, Country and Tags before exporting
  3. Click Export (top-right), then in the dialog click Export again. OneSignal sends the CSV to your email when it is ready.

    OneSignal - Export Subscriptions dialog with Export button
Include unsubscribed records

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.

Import Subscribers - Step 2: Upload your export, drag and drop CSV area and Handling large files instructions

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.