A Firebase Cloud Messaging alternative for web push and in-app notifications

If you're looking for a Firebase Cloud Messaging alternative for your website, Hive Push is DockHive's notification service. Send push notifications to your users' browsers and to an in-app inbox that updates live, from one API. Setup is one script tag and a one-line service worker.

What you get with Hive Push

Browser and in-app

Reach users in Chrome, Firefox, Edge and Safari, and in an in-app inbox that updates live, from one API.

Set up in minutes

One script tag for the browser SDK and a one-line service worker. That is the whole install.

Send to anyone

Target one user, one device, a set of tags, or everyone at once.

Scheduled sends

Write a notification now and have it go out at the time you choose.

Automatic retries

Sends that fail for a moment are retried for you. Dead subscriptions are removed automatically.

Delivery stats

See how many notifications were delivered, clicked and dismissed.

Signed user tokens

Your own server signs each user token, so nobody can subscribe as someone else.

Encrypted end to end

Messages are encrypted all the way to the browser with standard Web Push encryption.

More about Hive Push → · Read the docs →

Set up Hive Push

  1. 1 Create a push appIn the console, create a push app in the region closest to your users and copy its public key, secret key and host.
  2. 2 Add the service workerAdd the one-line service worker to your site, or add the same importScripts line to the service worker you already have.
  3. 3 Add the browser SDKAdd one script tag, then subscribe the browser from a click or tap.
  4. 4 Sign user tokens on your serverYour server signs a token for each signed-in user, so nobody can subscribe as someone else and the in-app inbox follows the user.
  5. 5 SendSend from your server to a user, a device, tags or everyone, now or on a schedule. Watch delivered, clicked and dismissed stats in the console.
service worker + browser SDK
// /hive-push-sw.js: your one-line service worker
importScripts('https://push-global-1.dockhive.io/sdk/v1/hive-push-sw.js');

<!-- Your page: one script tag for the browser SDK -->
<script src="https://push-global-1.dockhive.io/sdk/v1/push.js"></script>
<script>
  const push = HivePush.init({ key: 'pk_your_public_key', region: 'global-1' });
  // from a click: sign the user in, then subscribe this browser
  await push.setUser(userId, token);
  await push.subscribe();
</script>

Good to know

  • Native iOS and Android apps are coming soon, through your own Apple and Firebase keys. Today Hive Push delivers to browsers and the in-app inbox.

Questions about switching to Hive Push

Which browsers does Hive Push support?

Chrome, Firefox, Edge and Safari. Every notification can also land in an in-app inbox that updates live.

Can I send to mobile apps?

Native iOS and Android apps are coming soon, using your own Apple and Firebase keys.

Who can I send to?

One user on every browser they have subscribed, one device, everyone with a set of tags, or everyone at once. Sends can be scheduled, failed sends are retried automatically and dead subscriptions are removed for you.

Are notifications secure?

Yes. User tokens are signed by your own server, so nobody can subscribe as someone else, and messages are encrypted end to end to the browser with standard Web Push encryption.

Is there a free plan?

Yes. The Free Tier includes 2 apps, 10,000 devices and 50,000 sends a day in each region. The Developer Plan ($3/month) raises that to 10 apps, 100,000 devices and 500,000 sends a day, and the Pro Plan ($15/month) to 50 apps, 1 million devices and 5 million sends a day.

Where can my push app run?

In any of these regions: Global (Frankfurt), United States (Los Angeles), Germany, Portugal, Singapore, Tokyo and Hong Kong. Each app lives in the region you pick.

Explore DockHive

Try DockHive on the Free Tier

Start with Hive Push on the Free Tier. Upgrade to the Developer Plan ($3/month) or Pro Plan ($15/month) when you need more.