Expert Guide Series

Can I Send Push Notifications From My PWA?

Over 90% of mobile users never return to an app after using it once. That's a staggering number when you think about it—all that development time and money spent, only for users to disappear after their first visit. This is exactly why push notifications have become such a powerful tool for keeping users engaged and coming back for more.

But here's where things get interesting. As progressive web apps continue to gain popularity, many developers and business owners are asking the same question: can PWAs actually send push notifications? The short answer is yes, they absolutely can. The longer answer—well, that's what this guide is all about.

I've been working with mobile apps and progressive web apps for years now, and I've seen firsthand how push notifications can transform user engagement rates. When done properly, they can turn a one-time visitor into a loyal, returning user. When done poorly, they can drive people away faster than you can say "unsubscribe".

The key to successful push notifications isn't just knowing how to send them—it's understanding when to send them, what to say, and how to make users actually want to receive them.

This guide will walk you through everything you need to know about PWA push notifications. We'll cover the technical bits (don't worry, I'll keep it simple), the practical setup steps, and most importantly, how to use them in a way that genuinely helps your users rather than annoying them. By the end, you'll have a clear understanding of whether push notifications are right for your PWA and how to implement them properly.

What Is a Progressive Web App and Why Does It Matter

Progressive Web Apps—PWAs for short—sit somewhere between a website and a mobile app, bringing together the best bits of both worlds. Think of them as websites that act like proper mobile apps. They load in your web browser but feel native, work offline, and yes, they can send push notifications just like regular apps downloaded from app stores.

The beauty of PWAs lies in their simplicity for users. No app store downloads, no waiting for installations, no worrying about storage space on your phone. You simply visit the website and can add it to your home screen if you want quick access later. The experience feels seamless—exactly what users want in our fast-moving digital world.

Key Benefits That Make PWAs Stand Out

From a business perspective, PWAs solve several headaches at once. They work across different devices and operating systems without needing separate versions for iOS and Android. This means lower development costs and faster time to market—something every business owner appreciates.

  • Faster loading times compared to traditional websites
  • Offline functionality keeps users engaged even without internet
  • Push notifications help maintain user engagement
  • No app store approval process or fees
  • Automatic updates without user intervention
  • Responsive design that works on any screen size

PWAs have proven particularly effective for e-commerce, news sites, and service-based businesses where quick access and regular updates matter most. They bridge the gap between web accessibility and app-like functionality, making them a smart choice for businesses wanting to reach users without the complexity of traditional app development.

Understanding Push Notifications—The Basics Every Developer Should Know

Push notifications are those little messages that pop up on your device even when you're not actively using an app. They're the nudges that tell you about new messages, remind you about appointments, or let you know when your favourite shop has a sale on.

At their core, push notifications work through a simple system. Your progressive web app sends a message to a push service (like Google's FCM or Mozilla's service), which then delivers that message to the user's device. The user doesn't need to have your PWA open—the notification appears regardless of what they're doing.

Types of Push Notifications You Can Send

There are several types of notifications you can implement in your progressive web app:

  • Simple text notifications with a title and message
  • Rich notifications with images, buttons, and custom actions
  • Silent notifications that update data in the background
  • Persistent notifications that stay until the user dismisses them
  • Time-sensitive notifications with expiration dates

The Permission Dance

Before your PWA can send any notifications, users must grant permission. This is where many developers trip up—asking for permission at the wrong time or without proper context. Users are naturally protective of their notification settings, and for good reason.

Never ask for notification permission immediately when your PWA loads. Wait until users have engaged with your app and understand its value—then explain why notifications will benefit them specifically.

The technical side involves service workers, which act as intermediaries between your PWA and the push service. These background scripts can receive and display notifications even when your app isn't running, making them perfect for keeping users engaged with timely, relevant content.

Can PWAs Actually Send Push Notifications—The Technical Reality

Yes, PWAs can absolutely send push notifications—but there's a bit more to it than just flicking a switch. I've built dozens of PWAs over the years and the notification capability is one of the features that clients ask about most often. The good news is that modern browsers support push notifications for PWAs quite well; the slightly less good news is that there are some technical requirements you need to meet first.

Your PWA needs three main components to send push notifications: a service worker, the Push API, and the Notifications API. Think of the service worker as your PWA's background helper—it runs even when your app isn't open, which is exactly what you need for notifications to work properly. The Push API handles receiving messages from your server, whilst the Notifications API displays them to users.

Browser Support Reality Check

Most major browsers support PWA push notifications, but there are some gaps. Chrome, Firefox, Edge, and Safari (on macOS and iOS 16.4+) all handle them well. Android browsers generally work brilliantly too. The main limitation is that users must first grant permission for notifications—and trust me, many people say no!

Technical Requirements

Here's what your PWA absolutely must have for push notifications to work:

  • HTTPS connection (notifications won't work on HTTP)
  • Valid web app manifest file
  • Service worker registered and running
  • User permission granted for notifications
  • Push service subscription (like Firebase Cloud Messaging)

The technical reality is that PWAs share many capabilities with native apps when implemented correctly, but they're not quite as straightforward as native app notifications. You'll need to handle different browser APIs and manage subscriptions carefully—but the capability is definitely there and working in production apps right now.

Setting Up Push Notifications in Your PWA—A Step-by-Step Approach

Right, let's get our hands dirty and actually build this thing. Setting up push notifications in your progressive web app isn't as scary as it sounds—you just need to follow the right steps in the right order. The whole process revolves around three main components: a service worker, the Push API, and the Notification API. Think of it like building blocks that work together.

First things first—you need to register a service worker. This little piece of code runs in the background even when your PWA isn't open, which is exactly what we need for push notifications. Create a service worker file and register it in your main JavaScript file using navigator.serviceWorker.register(). Once that's sorted, you can start requesting permission from users to send notifications using Notification.requestPermission().

Getting the Technical Bits Right

The next step involves subscribing users to your push service. You'll use pushManager.subscribe() with your VAPID keys—these are like a secret handshake between your server and the push service. Don't worry if this sounds complicated; most developers find this bit tricky at first.

The hardest part about implementing push notifications isn't the code itself—it's making sure everything works reliably across different browsers and devices

Making It All Work Together

Once you've got the subscription sorted, you need to handle incoming notifications in your service worker using the 'push' event listener. This is where you'll display the actual notification to users. Finally, set up your server to send push messages to the subscription endpoints—and you're done! The whole process usually takes a few hours to implement properly, but the user engagement benefits make it worth every minute.

Making Push Notifications Work Across Different Browsers and Devices

Getting push notifications to work consistently across different browsers and devices isn't straightforward—each platform has its own quirks and limitations. Chrome, Firefox, Safari, and Edge all handle push notifications slightly differently, which means you'll need to account for these variations in your PWA development.

Safari on iOS deserves special attention because Apple only added support for PWA push notifications relatively recently. Before that, iPhone users couldn't receive push notifications from PWAs at all. Even now, the implementation differs from Android browsers—you'll need to check for Safari-specific requirements and handle the permission flow differently.

Browser Support Considerations

Different browsers support different features of the Push API. Some browsers might not support certain notification actions or rich media attachments. You'll want to implement feature detection in your code to gracefully handle these differences rather than assuming all browsers work the same way.

  • Chrome and Edge offer the most comprehensive push notification support
  • Firefox supports most standard push notification features
  • Safari has more restrictive policies and requires specific implementation approaches
  • Samsung Internet browser has good support but may require additional testing

Device-Specific Testing

Testing across devices becomes particularly important because notification behaviour can vary between desktop and mobile versions of the same browser. Android devices generally offer more flexibility with notification customisation, whilst iOS maintains stricter control over how notifications appear and behave.

The key is building your notification system with progressive enhancement in mind—start with basic functionality that works everywhere, then add enhanced features for browsers that support them. This approach means your PWA will deliver notifications reliably regardless of what device or browser your users prefer.

Best Practices for PWA Push Notifications That Actually Engage Users

Getting push notifications right is tricky business. I've seen plenty of progressive web apps that send notifications which users ignore completely—or worse, they turn them off entirely. The secret isn't just sending more notifications; it's about sending the right ones at the right time.

Timing makes all the difference. Users don't want notifications at 3 AM unless it's genuinely urgent. Most people check their phones first thing in the morning and during lunch breaks, so these windows often work well. But here's the thing—you need to think about your specific users. A fitness progressive web app might send workout reminders at 7 AM, whilst a food delivery app would focus on meal times.

Ask for notification permission after users have already experienced value from your PWA—not the moment they first visit.

Keep Your Messages Short and Personal

Nobody wants to read a novel on their notification screen. Keep messages under 50 characters when possible and make them feel personal. Instead of "New updates available," try "Your order is 5 minutes away" or "John liked your photo." The difference in user engagement is huge.

Don't Overwhelm Your Users

The fastest way to lose users is bombarding them with notifications. Start with one or two per week maximum, then adjust based on how people respond. Some progressive web apps work brilliantly with daily notifications—news apps, for example—whilst others should stick to weekly updates or only notify when something important happens.

Remember that different browsers handle notifications slightly differently, so always test your messages across multiple devices before sending them to everyone. What looks good on Chrome might appear truncated on Safari. Understanding notification best practices can make the difference between engaged users and frustrated ones who turn off notifications entirely.

Common Problems and How to Fix Them When Push Notifications Go Wrong

Push notifications in PWAs can be tricky beasts—one minute they're working perfectly, the next they've vanished without a trace. After years of wrestling with these issues, I can tell you that most problems fall into a few predictable categories that are surprisingly easy to fix once you know what to look for.

The most frustrating issue is when notifications simply don't appear. This usually happens because the service worker isn't registered properly or the user hasn't granted permission. Check your browser's developer tools first—look for any registration errors in the console. If permissions are the problem, you'll need to guide users through re-enabling them in their browser settings, which varies between Chrome, Firefox, and Safari.

Browser-Specific Headaches

Different browsers handle PWA notifications differently, and this causes endless headaches. Safari on iOS only supports push notifications for PWAs added to the home screen—they won't work in the regular browser. Chrome and Firefox are more forgiving, but they each have their own quirks with how they handle the Push API and display notifications.

Quick Fixes That Actually Work

  • Clear your browser cache and re-register the service worker—this fixes about 60% of notification issues
  • Check that your VAPID keys are correctly configured and haven't expired
  • Test notifications in incognito mode to rule out permission conflicts
  • Make sure your PWA is served over HTTPS—notifications won't work over HTTP
  • Verify that your manifest.json file is properly linked and contains all required fields

The good news is that once you've sorted these common issues, PWA push notifications tend to be quite reliable. Most problems stem from setup mistakes rather than fundamental technical limitations.

Conclusion

So there we have it—progressive web apps can absolutely send push notifications, and they're getting better at it all the time. After working with PWAs for years, I can say with confidence that the technology has matured enough to be a genuine alternative to native mobile apps for many use cases.

The technical reality is straightforward: PWAs use the same web push standards that power notifications in regular websites, but they do it through a more app-like interface. You get the service worker handling everything in the background, the push API managing the delivery, and the notification API presenting messages to your users. It works reliably across most modern browsers—though yes, iOS still has its quirks.

What I find most encouraging is how user engagement improves when you get push notifications right in a PWA. Users don't always realise they're not using a native app, which means they're more likely to grant notification permissions and actually engage with your messages. That's powerful stuff for businesses trying to build lasting relationships with their customers.

The setup process isn't rocket science either. Once you understand the flow between service workers, push subscriptions, and your server, it becomes quite manageable. The key is starting simple—get basic notifications working first, then layer on the sophisticated targeting and personalisation.

If you're still on the fence about whether PWAs can deliver the push notification experience your users expect, my advice is simple: try it. The technology is there, the browser support keeps improving, and your users might just surprise you with how well they respond to a thoughtfully implemented progressive web app with smart push notifications.

Subscribe To Our Learning Centre