4 ms·
Best practice is to not ask for permissions upon first page load - too many people will leave immediately. Instead, ask for them when they are relevant - for l
by clay_to_n 10y ago
Best practice is to not ask for permissions upon first page load - too many people will leave immediately.
Instead, ask for them when they are relevant - for location, maybe once they click the "From" box.
For notifications, build your own in-app message explaining why the user wants notifications. If they "Accept" your own box, show them the actual notification request.
Many people, especially HN users, will have ill-will against a site that immediately wants to send pop-ups to their browsers. It feels too much like spam, trying to catch unaware users. If you explain why first, it's less intrusive.