3. In order to create a Push Subscription button use the following:
<button onclick="pushwoosh.showSubscriptionWindow()">Subscribe to push notifications</button>
4. Alternatively, if you want Notification Subscriptions to pop up automatically (opposed to #4 above), use the following:
<script>pushwoosh.subscribeAtStart();</script>
IMPORTANT
A pop-up window is only allowed with the user's permission due to the browser's security policy: pop-up blockers engage automatically without direct user action.
The browser will block pop-ups automatically until you explicitly allow them with a button click.
The above-mentioned Push Subscription button will work flawlessly without additional user permissions.
As a result, the user will be prompted to subscribe for push notifications from the website: