May 22, 2018 10:07 am

Get started with web push notifications

Microsoft Edge now supports web push notifications via the Push API, beginning with the Windows 10 April 2018 Update. Web push notifications allow you to build re-engaging experience by delivering timely, relevant notifications to users, even when your browser or web app is closed.

To help you get started with push messages and to demonstrate how they work across different browsers, we’re happy to introduce a new Microsoft Edge tutorial: Web Push Notifications.

Logo reading: "Web Push Notifications: Welcome to the future of the web - where push messages can help you achieve better engagement for your site or web app."

Push notifications expand your reach to your users in a timely, power-efficient and dependable way. Users are re-engaged with customized and relevant content that will have them coming back for more.

Our tutorial is inspired by astrology, drawing parallels between the idea of messages from the zodiac being stored in the cloud and the way the architecture of push notifications is structured. Take a look to learn to set up your site for push notifications – both the front-end and the back-end.

Illustration of the zodiac, with a PC screen superimposed showing a push notification of a zodiac reading.

As with all our demos, you can fork the tutorial itself on GitHub and even set it up locally for your own experimentation. To learn more about building with Push and Service Worker, check out Ali Alabbas’ session from Microsoft Build 2018: Building performant and re-engaging web apps with Service Worker.

To try out push notifications in Microsoft Edge, visit the tutorial and click on the button that says, “Initiate push”, accept the permission prompt, and immediately close the tab (or browser). You should get a notification within 5 seconds after clicking the button below. When you click the notification, it will take you right back to the web push tutorial, so you can continue learning about push messages.

Try it out and let us know what you think!

— Ali Alabbas, Program Manager, Microsoft Edge
Stephanie Drescher, Program Manager, Microsoft Edge

Updated July 16, 2018 5:54 pm

Join the conversation

  1. Can we skip the phase of this feature where I, the user, am bombarded with requests for notifications (like I am in Chrome now) and go straight to the complete removal of this feature? I think I’ve clicked no a hundred times. That is not “better engagement”. Instead of getting “re-engaged”, I just ban the site.

  2. Not a fan of Notifications and if you try and turn them off. You get a nag telling you they are turned off with every site you visit who wants you to send you notifications. At least with Chrome and Firefox you can completely turn them off without any nags.