Add a New Domain in HTFY Pusher
HTFY Pusher allows you to manage push notifications across multiple domains. Adding a new domain is a simple, two-step process: Add the domain in your dashboard, then complete the setup on your website.
Step 1: Add Domain in Dashboard
Login to your HTFY Pusher Dashboard.
Navigate to the “Add Domain” section.
Enter your domain name in the format:
example.com
(Do not includehttps://
orwww
)Click “Add Domain” — your domain will now be added to the system.
Step 2: Complete the Setup on Your Website
To start sending Web Push Notifications from the newly added domain:
Go to the “Setup” section next to your added domain in the dashboard.
Download the following two required files:
firebase-messaging-sw.js
htfy_pusher_main-script.js
Upload these files to the root directory of your domain. Your file structure should look like this:
Include the following script tag in every page of your website, preferably in the
<head>
or before the closing</body>
tag:<script type="module" src="/htfy_pusher_main-script.js"></script>
✅ That’s it! Visitors to your domain will now start seeing the push subscription prompt, and you can manage subscribers directly from your HTFY Pusher dashboard.
What format should I use when adding a domain?
https://
or www
. For example, use example.com
instead of https://www.example.com
.Where should I place the setup files on my server?
firebase-messaging-sw.js
and htfy_pusher_main-script.js
— should be placed in the root directory of your domain (i.e., https://example.com/firebase-messaging-sw.js
).What if I don't see the push prompt on my website?
Make sure:
Both setup files are correctly uploaded and publicly accessible
The script tag is added to every page
Your site is running on HTTPS (required for push notifications)
Can I add multiple domains to the same HTFY Pusher account?
Yes, if your plan supports it. The dashboard allows adding and managing multiple domains under one account.