Web push notifications as a communication channel is meant to work on HTTPS websites only. HTTP websites availed web push notifications by creating sub-domains on HTTPS, making it a two-step subscription process. In the first step, websites can set up the context with an interactive message on a custom dialog box while the actual subscription prompt appears in the second step.
There is a reason why users aren’t subscribing to your notifications as they should. Here is a question you need to answer - What is the ‘right time’ to push out a web push notification? Here is a hint - it is definitely not forcing the users to act on a prompt as soon as your website loads. Read on to know what permission UX is and how you can delight your customers.