Is it possible to directly set the notification to allow instead of using Notification.requestPermission()
which prompts the user to Allow or block?
For further actions, you may consider blocking this person and/or reporting abuse
Is it possible to directly set the notification to allow instead of using Notification.requestPermission()
which prompts the user to Allow or block?
For further actions, you may consider blocking this person and/or reporting abuse
Prince -
Gaurav D. Lohar -
Kafeel Ahmad (kaf shekh) -
Hamza Khan -
Top comments (2)
No, and we should all be glad that we can't. It would be an absolute adware nightmare if sites could just bury themselves directly into desktop notifications.
This is why alert() is blocked by browsers in most cases now
Nope. And that's exactly how it should be.