2
最近、Microsoft EdgeモバイルがWindows 10 Anniversary Update後にWeb通知をサポートしていると聞きました。だから私は次のコードを試したが、うまくいかなかった。Microsoft Edge MobileでWeb通知がサポートされていますか?
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
});
});
}
Edge 38.14393.67.0とEdgeHTML 14.14393を使用しているWindows 10モバイルです。