Add a New Domain in HTFY Pusher

by: Admin » Published: 2025-06-22

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

  1. Login to your HTFY Pusher Dashboard.

  2. Navigate to the “Add Domain” section.

  3. Enter your domain name in the format: example.com(Do not include https:// or www)

  4. 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:

  1. Go to the “Setup” section next to your added domain in the dashboard.

  2. Download the following two required files:

    • firebase-messaging-sw.js

    • htfy_pusher_main-script.js

  3. Upload these files to the root directory of your domain. Your file structure should look like this:

  4.  Include the following script tag in every page of your website, preferably in the <head> or before the closing </body> tag:

  5. <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?

General
Enter the domain without https:// or www. For example, use example.com instead of https://www.example.com.


Where should I place the setup files on my server?

General
Both files — 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?

General

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?

General

Yes, if your plan supports it. The dashboard allows adding and managing multiple domains under one account.