Is it possible to directly set the notification to allow instead of using Notification.requestPermission()
which prompts the user to Allow or block?
Read next

Switching to a Tech Career at Thirty-Five
BruceRW3 -

{FREE} Ultimate Resources for Front-End Development in 2021 + Giveaway⚡
Rahul -

8 Awesome React Hooks
Simon Holdorf -

The best web accessibility tools for developers in 2021
Jake Tracey -
Discussion
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.