DEV Community

pranay rauthu
pranay rauthu

Posted on

correct way to request user permissions in browser?

This is what happens when I navigate to any website these days.

I open the website.
boom we use cookies is that ok.
me: yes (as if I have a choice)
do you want to enable push notifications.
me: no
add to home scre...

me: close the browser.

any ideas/suggestions how to request permissions without annoying the user?

Top comments (2)

Collapse
 
tiso profile image
tiso

Cookies: at the bottom of the browser window, with both options (allow/disallow).
Push notifications: Ask once a month and first ask after relevant action (read whole article or 3 articles)

Collapse
 
pranay_rauthu profile image
pranay rauthu • Edited