1×
Become a member
to unlock all features
Autoplay

    Add Push Notifications to a PWA with React in Chrome and on Android

    reactReact
    16.6.3-16.8.6

    On Android and in Chrome (but not on iOS), it's possible to send push notifications with a PWA. We'll start by asking the user for permission to send them push notifications, and then look at how to intercept the push event in a service worker. We can test the push notifications directly in Chrome's devtools, and we will also make a button that can trigger a push notification directly from the PWA app code itself.