Why use OneSignal with Median
- Web-first control: Drive push, in-app messaging, user identity, segments, and consent from your site’s JavaScript through the JavaScript Bridge.
- Consistent cross-platform setup: One Median plugin surface for iOS and Android after you complete each platform’s credential steps (APNS and FCM).
- Full OneSignal toolkit: Use dashboard campaigns, programmatic delivery, user targeting, and in-app messages from the same integration.
- Modern SDK defaults: Runs on OneSignal SDK v5+ with a user-centric model; older apps should confirm behavior against Legacy Mode.
Prerequisites
Make sure you have the following before starting. Missing any one of these will block your setup. All apps- A Median app with JavaScript Bridge enabled
- A OneSignal account — free to create
- Your OneSignal App ID (found in your OneSignal dashboard under Settings > Keys & IDs)
- An Apple Push Notification service (APNS) credential — either a .p8 token key (recommended) or a .p12 certificate, generated from your Apple Developer account
- Push Notifications and Background Modes (Remote notifications) capabilities included in your iOS signing setup
- App Groups capability included if you use badge counts, rich notification images, or confirmed delivery analytics
- A Google Firebase project with Cloud Messaging (FCM) enabled
- A Firebase Service Account JSON credentials file — downloaded from your Firebase project settings
Already have a OneSignal account connected to Median?Head straight to Managing Permissions & Consent to control how and when users are prompted.
When to use this plugin
Median’s OneSignal integration is especially useful when you need to:What you’ll do
Use this section as a fast navigation map into the full setup path:- Gather credentials: Complete the items in Prerequisites, including your OneSignal App ID, REST API Key, and platform credentials.
- Configure iOS (if applicable): Follow the iOS setup to generate your APNS credential and confirm the required iOS capabilities.
- Configure Android (if applicable): Follow the Android setup to create a Firebase project and upload FCM credentials to OneSignal.
- Enable the plugin in Median: Go to Plugin setup and connect OneSignal to your app in Median App Studio.
- Verify delivery: Complete the Testing checklist and review Troubleshooting if a test notification doesn’t arrive.
Android and iOS configuration
Complete the setup for each platform your app supports: Android setup and iOS setup.Android setup
Step 1: Create a Firebase project
If you don’t already have one:- Go to the Firebase Console.
- Click Add project and follow the prompts.
- Register your Android app using your app’s package name.
Step 2: Enable cloud messaging
In your Firebase project:- Go to Project Settings > Cloud Messaging.
- Confirm that Firebase Cloud Messaging (FCM) API is enabled.
Step 3: Download your service account credentials
- Go to Project Settings > Service accounts.
- Click Generate new private key.
- Download the JSON file — this is your FCM Service Account credentials file.
Step 4: Upload credentials to OneSignal
In your OneSignal dashboard:- Go to Settings > Push & In-App > Google Android (FCM).
- Upload the Service Account JSON file you downloaded in Step 3.
iOS setup
Step 1: Generate your APNS credential
Apple requires an APNS credential to authorize push notifications for your app. OneSignal supports two methods — pick one:- .p8 token key (recommended) — doesn’t expire, works across all apps in your Apple Developer account. Follow OneSignal’s p8 token-based guide.
- .p12 certificate (alternative) — app-specific, expires after one year and must be renewed. Follow OneSignal’s p12 certificate guide.
Step 2: Confirm push notifications and background modes
For App Studio builds using the App Store Connect API workflow, Median can register the Bundle ID with the required capabilities and generate the provisioning profiles used by your build. If you manually manage Apple identifiers/provisioning profiles or build from downloaded source, confirm these capabilities in your Apple Developer account and Xcode project:- Select your Main App Target.
- Go to Signing & Capabilities.
- Click + Capability and add Push Notifications.
- Click + Capability again and add Background Modes, then enable Remote notifications.

Push Notifications capability in Xcode
Step 3 (optional): Enable app groups
App Groups are required to support badge counts, rich notification images, and OneSignal’s confirmed delivery analytics. App Studio signing includes a OneSignal Notification Service Extension provisioning profile when the plugin requires it. If you manually manage Apple identifiers/provisioning profiles or build from downloaded source, add App Groups to two targets. Main app target:- In Signing & Capabilities, click + Capability and add App Groups
- Add a group with the identifier:
group.YOUR_BUNDLE_IDENTIFIER.onesignal
- Select the extension target in Xcode.
- Repeat the same steps and use the same App Group identifier.
YOUR_BUNDLE_IDENTIFIER with your app’s actual Bundle Identifier (for example, com.yourcompany.yourapp).
Confirmed delivery requires an eligible OneSignal plan — it’s not available on free plans. Enabling App Groups alone won’t produce confirmed-delivery analytics without the plan upgrade. See OneSignal’s pricing.
Plugin setup
Enable the plugin
With your platform credentials in place, connect OneSignal to your app in Median App Studio:- Open your app in App Studio.
- Navigate to Native Plugins > OneSignal.
- Enter your OneSignal App ID.
- Save and rebuild your app.
Find your OneSignal app ID and REST API key
You’ll need these for both the App Studio setup and any server-side or programmatic notifications.- Sign in to your OneSignal dashboard.
- Select your app.
- Go to Settings > Keys & IDs.
Keep your REST API Key private. It authorizes notification delivery on your behalf.
Testing checklist
Use this checklist to verify OneSignal is working correctly in your app: Basic functionality- The app installs and launches on a physical device (push notifications don’t work on most simulators)
- The push permission prompt appears and can be accepted on first launch
- Push notifications sent from OneSignal are delivered to the device
- There are no JavaScript errors in the console
- Push notifications are delivered to Android devices
- Push notifications are delivered to iOS devices
- Users who denied the push permission prompt do not receive push notifications
- In App Studio, the OneSignal App ID is entered in Native Plugins > OneSignal
- In the OneSignal dashboard, the iOS APNS credential (.p8 key or .p12 certificate) is uploaded under Settings > Push & In-App > Apple iOS (APNS)
- In the OneSignal dashboard, the Android FCM Service Account JSON is uploaded under Settings > Push & In-App > Google Android (FCM)
- The iOS Push Notifications and Background Modes (Remote notifications) capabilities are included in your App Studio signing setup, or enabled on the main app target if building from source
- (iOS, if using badges/rich media/confirmed delivery) App Groups capability with
group.YOUR_BUNDLE_IDENTIFIER.onesignalis included in your App Studio signing setup, or enabled on both the main app and OneSignalNotificationServiceExtension targets if building from source
- Permission prompt appears at the appropriate time (or is deferred using Managing Permissions & Consent)
- Notifications display on the device as expected
Troubleshooting
Test notification doesn’t arrive on iOS Confirm four things:- Your APNS credential (.p8 key or .p12 certificate) is uploaded in OneSignal under Settings > Push & In-App > Apple iOS (APNS).
- The Push Notifications capability is included in your iOS signing setup.
- The Background Modes capability is enabled with Remote notifications for your main app target.
- The device accepted the push permission prompt — denied permissions won’t receive notifications.
- Your FCM Service Account JSON is uploaded in OneSignal under Settings > Push & In-App > Google Android (FCM).
- You rebuilt the app after entering the OneSignal App ID in Median App Studio.
Notifications don’t appear on a simulator
Install the app on a physical device. Push notifications don’t work on most simulators. Accept the push permission prompt when it appears.Badge counts, rich images, or confirmed delivery aren’t working on iOS
Enable the App Groups capability on both your main app target and the OneSignalNotificationServiceExtension target using the same identifier:group.YOUR_BUNDLE_IDENTIFIER.onesignal. Without App Groups on both targets, badge counts won’t sync, rich notification images won’t render, and confirmed delivery analytics won’t report.
Confirmed delivery analytics also require an eligible OneSignal plan — they’re not available on free plans, even with App Groups configured correctly.
App was built before Median adopted OneSignal SDK v5
Median’s integration runs on OneSignal SDK v5+ by default and uses a user-centric data model. Apps built before Median adopted v5 should confirm behavior against Legacy Mode before proceeding.Still having trouble?For issues related to OneSignal’s own configuration, permissions, or platform-specific behavior, refer to OneSignal’s integration documentation.For issues related to App Studio, get in touch with the Median Support Team.