> ## Documentation Index
> Fetch the complete documentation index at: https://docs.median.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Push notifications overview

> Learn the types of push notifications, compare Median's push notification plugins, and set up push permissions on iOS and Android.

Push notifications help you drive user engagement and increase customer satisfaction with your app and/or service. You can learn more about push notifications in our [blog](https://median.co/blog/how-to-write-push-notification-copy-that-engages-and-converts-a-guide). Median's push notification plugins connect to marketing automation platforms like OneSignal, Braze, and Klaviyo, enabling you to send personalized messages triggered by user behavior, lifecycle stages, and real-time events.

Generally, you want to think about the following three categories of push notifications:

* **Marketing push notifications:** Broadcast push notifications that target your whole user base or large segments of users. Examples include a push notification for all Android or iOS users.
* **Personalized push notifications:** Push notifications that are typically driven by a user action and target a specific user based on their notification preferences.
* **Transactional push notifications:** Push notifications that are typically event-driven and target a small subset (often a single) of users. Examples include push notifications for shipping updates.

## Why use push notifications plugins?

* **Massive engagement boost:** Push notifications increase app engagement by up to 88%, with users who receive push notifications showing 3x higher retention rates than those who don't
* **Superior conversion rates:** Personalized push notifications can achieve conversion rates up to 35.8%(over 4x higher than generic broadcasts) with a 20% average open rate compared to just 2% for email
* **Behavioral targeting and automation:** Trigger messages based on user actions, preferences, and lifecycle stages with automated campaigns that respond instantly to cart abandonment, inactivity, purchases, and custom events
* **Advanced segmentation:** Target specific user groups by demographics, behavior, purchase history, location, and engagement level to deliver relevant messages that drive 3x higher engagement
* **Multi-channel orchestration:** Integrate push notifications with email, SMS, and in-app messaging for cohesive cross-channel campaigns managed from a single platform
* **Real-time analytics and optimization:** Track open rates, click-through rates, conversions, and revenue attribution with comprehensive dashboards that enable A/B testing and campaign optimization

## Common use cases

* **E-commerce and retail:** Send abandoned cart reminders, flash sale alerts, price drop notifications, back-in-stock alerts, and personalized product recommendations to drive purchases and increase average order value.
* **Content and media apps:** Re-engage users with new content notifications, personalized article recommendations, breaking news alerts, and content consumption reminders to boost daily active users and session time.
* **Financial services and fintech:** Send transactional updates like payment confirmations, fraud alerts, balance notifications, bill reminders, and investment opportunities while maintaining security and compliance.
* **Travel and hospitality:** Deliver booking confirmations, check-in reminders, flight status updates, location-based offers, and post-trip review requests to enhance the travel experience.

## Getting started

1. **Choose your plugin:** Browse the push notification plugins below and select the platform that fits your marketing needs. OneSignal offers a free tier with unlimited notifications ideal for startups, while Braze, MoEngage, and Klaviyo provide advanced segmentation and lifecycle marketing for enterprise scale.

2. **Review documentation:** Read the plugin's documentation to understand setup requirements, user consent flows, segmentation capabilities, and campaign automation features for your chosen platform.

3. **Enable in App Studio:** Navigate to **Native Plugins** in Median App Studio, click the **+** button next to your chosen plugin, and enter your platform credentials (App ID, API keys, SDK tokens).

4. **Implement with the JavaScript Bridge:** Add JavaScript Bridge commands to manage user subscriptions and retrieve device information. For example:
   * `median.onesignal.login()` to associate users with external identifiers
   * `median.onesignal.info()` to retrieve OneSignal user and device data
   * Configure notification permissions and consent flows through your platform's dashboard

## Key terms

The following terms will help you implement push notifications effectively:

**APNS (Apple Push Notification service)**: Apple's service for delivering push notifications to iOS devices. Requires a .p8 token key (recommended) or .p12 certificate generated from your Apple Developer account and uploaded to OneSignal under **Settings > Push & In-App > Apple iOS (APNS)**.

**FCM (Firebase Cloud Messaging)**: Google's service for delivering push notifications to Android devices. Requires a Firebase project and a Service Account JSON credentials file uploaded to OneSignal under **Settings > Push & In-App > Google Android (FCM)**.

**App ID and REST API Key**: The App ID identifies your app to the push provider's SDK; the REST API Key authorizes server-side notification delivery on your behalf.

**Legacy Mode**: A compatibility mode for apps built before Median adopted OneSignal SDK v5+. Uses a device-centric data model. See [Legacy Mode](https://docs.median.co/docs/onesignal-legacy-mode.md) for details.

## Featured plugins

> [card] [Firebase Cloud Messaging](https://docs.median.co/docs/firebase-cloud-messaging.md)
>
> Engage your users with native Firebase Cloud Messaging (FCM) push
> notifications.

> [card] [Klaviyo](https://docs.median.co/docs/klaviyo.md)
>
> Push notifications that boost engagement and provide audience insights.

> [card] [OneSignal](https://docs.median.co/docs/onesignal)
>
> Advanced push notifications with rich messaging for businesses of all sizes.

## All plugins

> [card] [Bloomreach](https://docs.median.co/docs/bloomreach.md)
>
> Real-time data and AI for personalized commerce experiences.

> [card] [Braze](https://docs.median.co/docs/braze.md)
>
> Push notifications and in-app event tracking for data-driven engagement.

> [card] [Cordial](https://docs.median.co/docs/cordial.md)
>
> Cross-channel messaging with personalized push notification campaigns.

> [card] [Customer.io](https://docs.median.co/docs/customerio.md)
>
> Push notifications, behavioral event tracking, and user identity management.

> [card] [Firebase Cloud Messaging](https://docs.median.co/docs/firebase-cloud-messaging.md)
>
> Engage your users with native Firebase Cloud Messaging (FCM) push
> notifications.

> [card] [Intercom](https://docs.median.co/docs/intercom.md)
>
> Rich push notifications and deep linking powered by Intercom.

> [card] [Iterable](https://docs.median.co/docs/iterable.md)
>
> AI-driven, behavior-based customer experiences across the entire lifecycle.

> [card] [Klaviyo](https://docs.median.co/docs/klaviyo.md)
>
> Push notifications that boost engagement and provide audience insights.

> [card] [MoEngage](https://docs.median.co/docs/moengage.md)
>
> Customer engagement with intelligent push notifications and analytics.

> [card] [Microsoft Dynamics 365](https://docs.median.co/docs/ms-dynamics.md)
>
> Send push notifications through Dynamics 365 to customers who have installed
> your app.

> [card] [OneSignal](https://docs.median.co/docs/onesignal)
>
> Advanced push notifications with rich messaging for businesses of all sizes.

> [card] [Optimizely](https://docs.median.co/docs/optimizely.md)
>
> Send push notifications as part of your Optimizely (Episerver) marketing
> campaigns.

> [card] [Salesforce Marketing Cloud](https://docs.median.co/docs/salesforce-marketing-cloud.md)
>
> Personalized, cross-channel notifications with Salesforce MobilePush.

> [card] [Sendbird](https://docs.median.co/docs/sendbird.md)
>
> Push notifications and in-app messaging for real-time communication.

> [card] [Xtremepush](https://docs.xtremepush.com/docs/overview)
>
> Personalized real-time notifications at every stage of the customer journey.

**Can't find your vendor?**

As your needs evolve, Median can extend your plugin implementation with new functions or data points from third-party SDKs, or integrate a vendor that isn't in our library yet.

> [card] [Talk to our team](https://median.co/contact?topic=sales-inquiry)
>
> Need a custom integration or new SDK functionality? We'll work with you to
> scope it to your requirements.

> [card] [Request a plugin](https://github.com/gonativeio/docs/discussions/new?category=feature-requests)
>
> Suggest a vendor for our plugin library, or upvote an existing request on
> our feature board.

> [!TIP]
>
> On a Business or Enterprise annual plan? Open a ticket from the
> &#x20;**Support** tab in App Studio so
> your request is linked to your app and prioritized under your plan. See
> [Opening a ticket via App
> Studio](https://docs.median.co/docs/support.md#opening-a-ticket-via-app-studio).

## Push permissions

### General

To receive push notifications, you will need to collect the consent of your users to receive push permissions. Each of the plugins will have a method to request the permissions or check whether the permissions were granted by a user.

Additionally, you can learn more about user-granted permissions in our [Permissions overview](https://docs.median.co/docs/permissions-overview) article.

### iOS

Receiving push notifications on iOS will require enabling 'Push Notifications' capability when building your app.

* **App Studio builds:** When using the App Store Connect API workflow, Median can register the Bundle ID with the required capabilities and generate provisioning profiles for the enabled push notification plugin.
* **Manual signing or source builds:** If you manually manage Apple identifiers/provisioning profiles or build from downloaded source, confirm the Push Notifications capability is enabled in your Apple Developer account and Xcode project. See [Build iOS from source](https://docs.median.co/docs/build-ios-from-source.md).

### Android

No additional steps are required other than obtaining the user's consent to receive push notifications.

## App icon badges

App icon badges are the small indicators on your app's icon that tell users something is waiting for them, usually unread push notifications. How a badge looks, and whether it shows a number at all, depends on the operating system, the device manufacturer, and the user's own settings. Treat badges as a helpful extra signal rather than a guaranteed one, and keep your in-app unread indicators as the source of truth.

### iOS

iOS supports numeric badges consistently across all devices.

* **Permission:** Badges are part of the notification permission the user grants. Users can turn badges off for your app at any time under **Settings > Notifications > \[Your app] > Badges**, even while still allowing alerts.
* **Setting the count:** The badge number is set by the push payload or by your app. iOS does not increment or decrement the count on its own. If you want each notification to add to the count, your push provider must support incrementing (for OneSignal, this relies on the Notification Service Extension being included in your build).
* **Clearing the count:** iOS does not clear the badge when the user opens the app or reads content. Your app or push provider has to reset it. Use your plugin's badge method: `median.onesignal.badge.set(0)` for [OneSignal](https://docs.median.co/docs/notification-customization.md#notification-badges), or `median.firebaseMessaging.clearBadge()` for [Firebase Cloud Messaging](https://docs.median.co/docs/firebase-cloud-messaging.md#notification-badges).

### Android

Android has no standard, system-wide API for showing a numeric count on an app icon. What users see is decided by the device's launcher:

* Since Android 8.0, launchers show a **notification dot** when your app has active notifications in the notification shade.
* The badge usually reflects **notifications currently in the shade**, not unread items in your app. When the user dismisses or clears a notification, the badge typically disappears with it, and a badge count sent without a visible notification may not display at all.
* Users can disable badges per app, or per notification channel, in the app's notification settings.

#### Behavior by device and custom OS

| Device / OS | Typical badge behavior | Notes |
| - | - | - |
| Google Pixel and stock Android | Dot only | The count appears only in the long-press menu on the app icon. |
| Samsung (One UI) | Number or dot | The user picks the style in the device's notification settings ("App icon badges"). The count is based on active notifications. |
| Huawei (EMUI / HarmonyOS) | Number | Uses Huawei's own launcher badge mechanism. Huawei devices sold without Google Mobile Services cannot receive FCM, so FCM-based push (and its badges) will not reach them. |
| Xiaomi (MIUI / HyperOS) | Number | The count follows notifications in the shade. Aggressive battery management can stop delivery when the app is closed; users may need to enable Autostart for your app. |
| OPPO, OnePlus, realme (ColorOS / OxygenOS) | Dot or number, varies by OS version | Numeric badges have historically been limited to approved apps on some versions. Users may need to enable badges manually. |
| vivo (Funtouch OS / OriginOS) | Varies, often off by default | Numeric badges have historically been limited to approved apps. Users may need to enable desktop icon badges in settings. |
| Third-party launchers (e.g. Nova) | Depends on the launcher | Some require the user to grant notification access before badges appear. |

> [!NOTE]
>
> Manufacturers change badge behavior between OS versions, so the table above describes common behavior, not a guarantee. Always test on real devices from the markets your users are in.

### Best practices

* **Don't rely on badges for critical information.** Some users will never see a number, so use push notifications, in-app messages, or email for anything important.
* **Clear badges when content is read.** Reset the badge from your web app when the user views the related content, so the count doesn't go stale on iOS.
* **Keep Android notifications meaningful.** Because Android badges usually mirror the notification shade, avoid leaving outdated notifications in place just to keep a badge visible.

## Frequently asked questions

> [accordion] Why choose native push over web push?
>
> Native apps connect directly to Apple's APNS and Google's FCM (the same infrastructure every major App Store and Play Store app relies on) for more consistent delivery and full access to targeting, automation, and rich notification features. With Median, you get this native push experience without building separate iOS and Android codebases from scratch.

> [accordion] Do push notifications work as well on a PWA as they do in a native app?
>
> Not quite. PWA push on iOS only works if a user manually adds your site to their Home Screen, and only on iOS 16.4 or above. Anyone who skips that step, or is on an older device, gets no push at all. Native apps have no such barrier: once installed, push works immediately across all supported iOS and Android versions, with full support for rich notifications (images, action buttons, grouping) that PWAs can't match.

> [accordion] Why does my app show a dot instead of a number on Android?
>
> Android leaves badge display to the device's launcher. Stock Android and Pixel devices only show a dot, while Samsung, Huawei, and Xiaomi devices can show a number. On Samsung devices, the user chooses between a dot and a number in their notification settings. Your app cannot override this.

> [accordion] Why doesn't the badge clear when users open my app?
>
> On iOS, the badge stays until your app or push provider resets it. Use your plugin's badge method when the user reads the content, for example `median.onesignal.badge.set(0)` for OneSignal or `median.firebaseMessaging.clearBadge()` for Firebase Cloud Messaging. On Android, the badge is usually tied to notifications in the shade, so it clears when those notifications are dismissed. Some launchers cache the badge, and toggling badges off and on in the app's notification settings will reset it.


## Related topics

- [Quickstart guide](https://docs.median.co/docs/quickstart.md)
- [OneSignal overview](https://docs.median.co/docs/onesignal.md)
- [Customize push notifications](https://docs.median.co/docs/notification-customization.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.