Practical ways to improve opt-ins without hurting user experience.

Subscriber growth depends on timing, trust and the value you communicate before asking for permission.
Instead of triggering the browser permission immediately, show a branded popup explaining what users will receive. Ask for permission only after they click Allow.
Tell users they will receive updates, offers, alerts or helpful content. A clear reason improves opt-in rate.
Show the prompt after a few seconds or after the user scrolls. Users are more likely to subscribe after understanding your website.
A finance website should promise finance updates. A travel website should promise travel deals. Category relevance improves trust.
Do not show too many popups. A clean and respectful prompt builds better subscribers.