How to use custom domain for push notifications?
By default, your subscribed users will receive web push notifications coming from push.getbeamer.com. This is necessary for us to make push work for your site with zero configuration (and zero tech work!).
However, you can still easily set up web push notifications on Beamer to work on your own site (so users will see your domain when they receive a notification). Any web developer or administrator will be able to do this in ~5 minutes. So, how do you do it?
- Upload files to your site. You will need to upload two small files to the top level root of your site’s directory. These files are manifest.json and beamer-push-sw.js, which you can download right here.
Please, do not change the names of these files.If you already have a manifest.json file in your directory, simply copy and paste the gcm_sender_id attribute from our file to yours.
- Link the manifest.json file in your site. If you don’t already have one, add a
<link>tag to your site’s HTML
<head>section, referencing the manifest.json file you’ve just added. Like so:
<link rel="manifest" href="/manifest.json" />
- That’s it! If everything else is set up on your account, your users should now be able to subscribe and receive web push notifications from your own domain!
Get in touch with us through our Support Chat if you have any doubts or questions on how to implement this for your site.
Was this helpful?
Help us help you more