Back to BlogEngineering6 min read
Push Notifications Done Right on iOS and Android
How tokens flow through FCM and APNs, why the iOS prompt gets one chance, and the payload and channel details that stop notifications failing silently.
SummationWorks Team

Most apps treat push notifications as an afterthought: a switch flipped near launch, a few "We miss you!" blasts, and a steady stream of users tapping "Turn off." Done well, notifications are one of the cheapest channels you have for retention and revenue. Done badly, they are the quickest way to get muted, uninstalled or reported. The difference is mostly engineering and judgment.
This guide covers the moving parts on iOS and Android and the decisions that make users trust the channel instead of silencing it.
How push actually works
Your servers don't send notifications straight to a phone. They go through platform gateways that own the connection to each device.
- On Android, your backend sends a message to Firebase Cloud Messaging (FCM), which delivers it to the device.
- On iOS, delivery goes through the Apple Push Notification service (APNs). Most stacks still route through FCM, which forwards to APNs, so you have one API for both platforms.
- Web push uses the same FCM/browser-vendor pipeline through service workers.
The flow is always the same. The device registers and receives a device token, your app sends that token to your backend, and the backend stores it against the user. To notify someone, you look up their tokens and ask the gateway to deliver. Tokens are not permanent: they rotate when the app is reinstalled, restored to a new device or refreshed by the OS. Your backend has to keep them updated in the background, or you end up pushing into the void.
For most teams shipping on Flutter, React Native or native code, FCM is the practical default: one SDK and one server API for both platforms. It also handles topic subscriptions and device groups, so you don't have to build fan-out logic yourself.
Permission is the product
The most common mistake is asking for notification permission on first launch, before the user knows what the app does. On iOS the system prompt effectively gets one chance. If the user denies it, you can't ask again from inside the app; they have to go into Settings, and almost nobody does.
The fix is a pre-permission primer: a screen you control that explains what notifications will give the user before the OS dialog appears.
- Show the real prompt at a moment of demonstrated intent, not on launch. A food delivery app should ask after the first order, not before browsing.
- Say exactly what they'll receive: "Order status and delivery updates," not "Enable notifications."
- If they decline your primer, don't fire the system prompt. Ask again later, when the value is clearer.
Android used to grant permission automatically, but Android 13 and later require a runtime permission too, so the same primer logic now applies on both platforms. Treated as a conversion funnel, with its own copy and timing, the permission step routinely gets much higher opt-in than a first-launch prompt.
Segmentation and timing beat volume
Once you have permission, restraint keeps it. The apps that keep users engaged send fewer, more relevant messages.
Segment before you send
Sending the same message to your whole user base is how you train people to ignore you. Segment by behaviour and lifecycle:
- New users who haven't finished onboarding
- Active users close to a meaningful milestone
- Dormant users who were valuable and went quiet
- Customers with an abandoned cart or an unfinished checkout
Each segment gets its own copy, its own trigger and sometimes its own frequency cap.
Respect time and place
A notification at 3 a.m. local time sends people straight to the off switch. Store each user's time zone and send inside sensible local windows. For audiences across the GCC and Egypt, plan around the local working week and prayer times instead of a Western schedule. Localise the message body too, with right-to-left rendering for Arabic, so the notification looks native.
Prefer triggered over broadcast
The notifications that perform best are event-driven: a price drop on a watched item, a reply to a comment, an order out for delivery. They're tied to something the user already cares about, so they're relevant by definition. Broadcasts have a place for genuine announcements, but they should be the exception.
Deep links, payloads, and reliability
A notification that opens the app on a generic home screen wastes the tap. Every actionable notification should carry a deep link in its payload that goes straight to the relevant screen: that order, that chat, that product. This is also where notifications fail silently in production, so test it properly.
The engineering details that matter:
- Distinguish notification messages from data messages. The OS renders notification messages; data messages hand the payload to your code so you decide how to display or process it. Mixing them up causes notifications that silently disappear when the app is in the background.
- Handle all three app states: foreground, background and terminated. Behaviour differs per platform, and this is the most common source of "it works on my phone" bugs.
- Set channels and categories. Android notification channels and iOS interruption levels let users choose which kinds of message they get. Separating transactional alerts from marketing keeps your critical messages from being muted along with the promos.
- Track delivery and engagement. Log sends, deliveries, opens and the in-app action that followed. Without that loop you're guessing, and you can't find the campaigns that quietly annoy people.
Treat critical transactional notifications like any important system call: retries, idempotency so a user isn't buzzed twice for one event, and monitoring on token refresh failures.
A pre-launch check
- Both platforms route through FCM, and token refresh updates the backend.
- The permission prompt follows a primer, at a moment of intent.
- Messages are segmented and sent in the user's local time.
- Every actionable notification deep-links to its screen, in all three app states.
- Transactional and marketing messages use separate channels.
- Sends, opens and downstream actions are logged.
If you want notifications that drive retention rather than uninstalls, SummationWorks can design the permission flow, FCM integration, segmentation and deep linking end to end as part of mobile app development. See our services, browse our work, or get in touch to talk through your project.
About the author
SummationWorks Team
SummationWorks is a software development company building web apps, mobile apps, and AI tools for startups and growing businesses worldwide.
More about usRelated Articles

engineering8 min read
Rescue or Rebuild: What to Do With an App Another Developer Left Half-Finished
Your developer has gone and the app is half done. How to secure what you own, assess the code, decide whether to keep it, and what a proper handover includes.
SummationWorks Team

engineering6 min read
Odoo and ZATCA Phase 2: E-Invoicing Compliance for Saudi Businesses
Wave 24 closed in June 2026 and Wave 25 pulls in every business above SAR 187,500. Here is how ZATCA Phase 2 works, what Odoo does natively, and the setup steps that trip most companies up.
SummationWorks Team

engineering5 min read
Custom Odoo Modules: When to Configure, When to Customise, and How to Keep Upgrades Painless
Odoo is easy to customise, which is exactly how companies end up with unmaintainable systems. The decision rules, the module patterns, and the habits that keep a customised Odoo upgradeable.
SummationWorks Team
Have a project in mind?
Let's turn your idea into production-grade software.