DEV Community

pranay rauthu
pranay rauthu

Posted on

1

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

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay