[Documentation](https://fluxnative.app/docs) / Publish to stores

# Push notifications

Turn push on, choose FluxNative or OneSignal, connect its keys, build, then send or schedule from Push notifications and see who it reached and who opened it.

![Push notifications: Set up push notifications, with Turn on, the choice of FluxNative or OneSignal with Connect Firebase and Add key, and Update push code](https://fluxnative.app/guide-media/push-notifications.f64587e0.webp)

Set up push notifications lists every step and ticks each one itself.

## Steps

1. Open **Push notifications** from the app's pages. **Set up push notifications** lists every step and ticks each one by itself; press **Turn on**.
2. Choose how notifications are sent. **FluxNative** (recommended) sends straight through Apple and Google: under **Android**, **Connect Firebase** takes the Firebase project's service-account key (**Project settings** › **Service accounts** › **Generate new private key**); under **iPhone**, **Add key** takes the APNs .p8 key, its 10-character Key ID and your 10-character Team ID. One of the two is enough to start. **OneSignal** is for an app that already uses it: **Connect OneSignal** takes the OneSignal App ID and an App API key (OneSignal › **Settings** › **Keys & IDs**); the Apple and Google keys go in OneSignal's own settings.
3. **Notification code in the app** ticks once the app has its notification library. If it is missing, or the step says the app asks for permission as soon as it opens, press **Update push code** (one change you can undo).
4. Make a new native build and install it.
5. People turn on notifications in your app: the last step counts the phones that can receive (or OneSignal's subscribers). If a build is out and nobody shows up, **Ask the agent to check** has the agent look at how the app lets people turn notifications on.
6. Once a phone can receive, the composer opens (before that, **Write a draft now** opens it for a draft). Write a **Title** (up to 65 characters) and a **Message** (up to 240), pick the screen **Open on tap** opens and the platforms, then press **Send now** and confirm in the dialog. **Write with AI** drafts it with Growth.
7. To reach only some people: with FluxNative, open **Narrow the audience** and pick languages, an app version range or list, or when the app was last opened; the count under it updates as you change them. With OneSignal, pick one of its segments.
8. To send later, pick **Schedule for later** and a time in your own clock, then press **Schedule**. Until it starts, **Edit** changes it and **Cancel schedule** stops it.
9. **Notifications** lists what is still **To send** and what was **Sent**, with how many phones it went to and how many opened it.

## Good to know

- Sending is part of the paid plans; phones register on any plan. A store version built before push was on registers nothing.
- Turning push on, choosing how it is sent, the APNs key and the OneSignal app, and writing and sending take the **Push notifications** permission (**Team** › **Role permissions**), which admins have by default. Connecting Firebase and **Update push code** also need **Edit code**.
- One APNs key serves every app of your Apple team. Firebase handles push only: your data can stay in Supabase or elsewhere.
- **Replace** checks the new APNs key or OneSignal app with Apple or OneSignal before saving it. One they refuse is not saved, and the previous key keeps sending.
- A change between FluxNative and OneSignal applies to builds made after it; phones on an older build keep the old way until they update.
- A send goes to everyone in its audience who allowed notifications, at the same moment in every time zone (a scheduled one at its time, within a minute), and once it starts it can't be stopped or undone. There is no per-device local time. A scheduled send that could only start more than 6 hours late is not sent; the list says why.
- With FluxNative each phone gets at most one notification a day: phones another notification reached in the last 24 hours are skipped and counted, and the confirm offers **Send to them anyway**. OneSignal sends follow OneSignal's own settings.
- **Sent to** counts phones Apple or Google took the message for; a phone that is off gets it later, or not at all after 12 hours. **Opened by** counts taps, from builds with the newer notification code. With OneSignal the numbers come from OneSignal a minute or two after the send: delivered, clicked, and confirmed received on a paid OneSignal plan.
- A FluxNative filter leaves out a phone that never reported that value, such as an app built before the base that sends its version.
- No test send or images yet. Write words that are true for everyone who gets it, and promise only what the app keeps.
- If the app has its own notifications switch (for reminders, say), it should also turn campaigns on and off, so one switch controls everything; the agent wires it that way.

**Warning:** Promotional notifications need in-app consent to marketing on iOS (App Store guideline 4.5.4), with a way to turn it off. The system permission is not that consent.

## Related

[Native builds overview](https://fluxnative.app/docs/builds-overview) · [Firebase](https://fluxnative.app/docs/firebase)

Previous: [Production release](https://fluxnative.app/docs/production-release) · Next: [Video ads](https://fluxnative.app/docs/video-ads)

---

Turn push on, choose FluxNative or OneSignal, connect its keys, build, then send or schedule from Push notifications and see who it reached and who opened it.

Page: https://fluxnative.app/docs/push-notifications
