Recently I heard that Microsoft Edge mobile supports Web Notifications after the Windows 10 Anniversary Update. So I tried the following code but it didn't work.
if ( window.Notification && Notification.permission !== "denied" ) {
Notification.requestPermission( function( status ) { // status is "granted", if accepted by user
var n = new Notification('Title', {
body: 'I am the body text!',
icon: '/path/to/icon.png' // optional
});
});
}
I am on Windows 10 mobile using Edge 38.14393.67.0, and EdgeHTML 14.14393.