Permissions on the Web Suck

I am a fan of progressive web apps and the powers that they bestow on web developers to build the next generation of applications. We can write web applications that work offline, download large files in the background, send push notifications, and much more. I was so excited about push notifications on the web that I wrote a whole talk about it in 2015 and was fortunate enough to give it in a bunch of places around the world.

But perhaps I was a little too prescient with that talk title, "The web is getting pushy." Web applications themselves are getting pushy and now I see tweets like this:

How to Quickly Build a Progressive Web App Using Lightning Web Components

Earlier this year, a post came out on the Salesforce Developers Blog, entitled “How to Build Progressive Web Apps with Offline Support using Lightning Web Components.” During the post's discussion about using Lightning Web Components (LWC) to build progressive web apps, it mentioned push notifications. My interest was piqued. How simple would it be to use LWC to build an app for push notifications? It turns out  —  really simple.

A Quick Review:  What Is a Progressive Web App (PWA)?

While a PWA can be used in a web browser like any standard web application, the PWA's power comes from users being able to “install” the PWA to their desktop or mobile device, just like a native app. What you end up with is a kind of pseudo-native app  —  built and run with standard web-app technologies, but enhanced to do things like caching for offline access and push notifications.

How to Integrate and Test Push Notifications for Your Apps

Push notifications

This article will help you understand the importance of push notifications in mobile apps. It will also help you understand how to integrate and test push notifications for your applications.

You might also like:  Browser Push Notification in Angular 5

What Is a Push Notification?

Push Notifications are small automated messages or mobile alerts that pop up on mobile devices. These messages are sent by the application to a user irrespective of whether the user is active on the app. Push notifications are directly sent from the server whenever new content is uploaded. For example, a notification giving an update on a current crisis from a news app.