In this section

Resources / Help / Changelog

Push notifications

Let visitors subscribe to browser notifications for your posts: in a Hubbo window with nothing to install, or on your own site with one file.

A push notification is a message the browser shows even when your site is closed. Visitors have to allow it first. Posts → Settings → Push decides whether they can, and where the browser asks.

Switch it on

  1. Open Posts → Settings → Push.
  2. Switch on Let visitors subscribe.
  3. Choose Where visitors allow notifications (see below).
  4. Optionally upload a Notification icon: a square image, saved as 192 × 192 px. It appears next to the OS notification and as the logo in the Hubbo subscribe window. Without it the browser and the window use their defaults.
  5. Save.

From then on the widget shows a bell in its header, and the public changelog and news pages show a Get notifications button. The footer of the settings card shows how many browsers are subscribed.

When to ask

Under When to ask choose Manual (visitors click the bell) or When the widget opens (the first time someone opens the widget, Hubbo starts subscribe for them). Browsers only allow the permission prompt after a click, so automatic uses the click that opens the widget — not loading the embed alone. The bell stays as a fallback.

Where visitors allow notifications

A browser ties a notification permission to one address. You choose whose address that is.

In a Hubbo windowOn your own site
SetupNothing to install.One file on your site.
What the visitor seesA click on the bell opens a small Hubbo window with your account name and a Get notifications button. The browser asks there.A click on the bell makes the browser ask on your page. No extra window.
Address on the notificationHubbo’s.Yours.
Public changelog and news pagesUse the Hubbo window.Use the Hubbo window, also on a custom domain.

Set up “On your own site”

  1. Choose On your own site and download hubbo-push-sw.js from the box that appears.
  2. Serve the file unchanged from the root of every site that shows the widget, at https://your-site.com/hubbo-push-sw.js.
  3. Save. The site must use https.

Until the file is found, visitors subscribe in the Hubbo window instead, so nothing breaks while you deploy. Details for developers, including Content-Security-Policy, are in Push notifications on your own site.

What visitors see

  • With Manual, the bell asks for nothing until it is clicked. With When the widget opens, the first panel open starts subscribe; the bell still works afterwards.
  • After subscribing, the bell shows as on. Another click turns notifications off for that browser.
  • If the visitor blocked notifications, the bell says so and explains that they have to allow them in the browser settings.
  • A notification shows the post title, the start of its text and your icon. A click opens the post. See Send a post by email and push for where it leads.
  • If the browser is offline, the notification waits for up to 24 hours and is then dropped.

Who is a subscriber

A subscriber is a browser, not a person: someone who subscribes on a laptop and a phone counts twice. Hubbo remembers which stored user the browser belonged to, so Logged in and trait targeting work for push. A browser nobody was signed in to counts as logged out and has no traits. With On your own site, the subscription is refreshed each time the visitor opens the widget, so it follows the user who is signed in that day.

  • A subscription the browser dropped is removed automatically at the next send.
  • Switching Let visitors subscribe off hides the bell and the buttons, so nobody new can subscribe. Browsers that subscribed earlier stay subscribed: a post with the Push switch on still reaches them. To stop sending, leave Push off on your posts.

Browser support

BrowserPush
Chrome, Edge, Firefox, Opera on desktop and AndroidYes.
Safari on MacYes, in Safari 16 on macOS 13 and newer.
iPhone and iPadOnly on iOS 16.4 and newer, for a site the person added to the Home Screen, and only with On your own site. In a normal Safari tab the bell says that the browser cannot show notifications.
Private windows and browsers without a push serviceNo. The bell says that the browser cannot show notifications.

Wording and languages

The button label, the sentence in the Hubbo window and the messages for subscribed, blocked and unsupported browsers are under Posts → Translations. {name} in the invitation is replaced with your account name.

Read more: Send a post by email and push, Push notifications on your own site.