javascript - How to refresh or redirect users after they allowed to get chrome browser notifications? -
is possible in chrome using javascript or php refresh page or redirect users specific page, after user pushed [allow] button in notification pop-up (example of notification request popup: http://prntscr.com/7ataxu)?
https://developer.mozilla.org/en-us/docs/web/api/notification
notification.requestpermission(function (permission) { // if user accepts, let's create notification if (permission === "granted") { //redirect using javascript here window.location } });
Comments
Post a Comment