Welcome Guest Search | Active Topics | Sign In | Register

HTML5 Notification.requestPermission doesn't invoke WebView.RequestPermissions event Options
James
Posted: Thursday, November 2, 2017 12:37:25 PM
Rank: Advanced Member
Groups: Member

Joined: 2/11/2015
Posts: 122
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?
eo_support
Posted: Friday, November 3, 2017 7:48:04 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,081
Hi,

This is not currently supported. We are starting the 2018 release cycle very soon, we will see if we can add this in the 2018 release cycle.

Thanks!
RobotGizmo
Posted: Friday, March 5, 2021 12:29:00 PM
Rank: Member
Groups: Member

Joined: 6/13/2019
Posts: 18
Has support for the Notification object been added yet? I can't find any documentation for it and the object doesn't exist when I try to call it using JS. Thanks!
eo_support
Posted: Tuesday, March 9, 2021 2:26:40 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,081
No. This is still not supported in the current build. :(


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.