Why Notification Message Is Not Working In Ie11
I am trying to show a notification message in IE11, But not working. Any other method is there for IE to show notification messages. If anyone knows please help to find the solutio
Solution 1:
An easy way would be to use alert()
on older browsers, e.g.:
if(!("Notification"inwindow)){
console.log("Browser not supported");
alert("my message");
}elseif(Notification.permission === "granted"){
console.log("Show content for New Message");
};
Otherwise, if you're looking for better UX than that, you could write the message to the page.
It would also be a reasonable decision to only use the feature where it is supported. People using IE are unlikely to expect notifications from their browser!
Solution 2:
Because IE doesn't support the notification
API:
https://developer.mozilla.org/en-US/docs/Web/API/notification#Browser_compatibility
I'd suggest dropping support for IE, yourself, as even Microsoft no longer supports it. It's market share is way below 1.5%, no longer worth it generally.
Post a Comment for "Why Notification Message Is Not Working In Ie11"