The goal is to allow you to trigger an external window where users can opt into receiving push notifications, on a separate and unique domain name. Once the user grants or denies permission, the opt-in window is automatically closed so the user can continue browsing the original website.
Awesome! How does it work?
var optinWindow = window.open('https://yoursupersamples.com/subscribe/');
Why is this necessary?