Code: JavaScript
Notification.requestPermission(function(permission) {
Notification.permission = permission;
if(permission === "granted") {
var note = new Notification('Test', { body: "THIS IS A TEST!" });
}
});
In Chrome the previous code will correctly open the request permissions dialog with the ability to allow or block.
I checked everything I could, and the Chrome version currently in use by EO appears to support the Notification API.
However, when Notification.requestPermission is called, the WebView.RequestPermissions event is not called.
I noticed that the Permissions enumeration doesn't contain a value for Notification and I suspect is related to why the event is not called.
It would be nice to allow the usage of the notification api as it allows some advanced html rendering scenarios not currently available for desktop applications.
Is there any chance support for this could be added?