Skip to main content
Build with NR Connect2 min read

Send push notifications

Subscribe a browser and send targeted alerts from Node-RED.

On this page

Subscribe and send a test alert

  1. Add an nrc profile widget and open the dashboard through your secure NR Connect address.
  2. Enable Push Notifications and allow notifications in the browser permission prompt.
  3. Wire an Inject node to nrc notify (nr-connect-notify). Set a test title and body; choose recipients who have access to this instance.
  4. Deploy and trigger the Inject node. Confirm delivery on a subscribed browser before using the flow for real alerts.

Page scope and recipient selection both affect eligibility. A user must also have a browser subscription. Instance owners can also send a test alert or remove registered push devices directly from the instance's Notifications panel in the portal.

Sending alerts (nr-connect-notify)

Use the nr-connect-notify node (found in the network palette category as nrc notify) to send Web Push notifications from any Node-RED flow—sensor alarms, PLC faults, shift handovers, or scheduled summaries.

Scroll sideways to view all columns.

FieldPurpose
Title / BodyStatic text or dynamic msg/flow/global properties. Blank Title falls back to msg.topic, then Node-RED Alert.
RecipientsAll instance members, Admins & owner only, or a comma/semicolon-separated list of specific emails.
Page ScopeOptional Dashboard 2.0 page filter—restricts delivery to users permitted to view that page and opens it on click.
Click URL (Advanced)Relative dashboard path (e.g. /dashboard/boilers) opened when the user taps the notification. Defaults to Page Scope.
Replace Tag & Urgency (Advanced)Replace Tag collapses older unread notifications sharing the same tag; Urgency sets delivery priority (very-low, low, normal, high).

Dynamic message properties & output

You can override node defaults per message with msg.topic (fallback title), msg.pageId, msg.recipients (auto-targets those emails), or a msg.notification object before nr-connect-notify (supporting title, body, target, emails, pageId, url, tag, urgency, requireInteraction, icon, image, ttlSeconds, and data). On delivery, the node forwards the message with msg.pushResult ({ ok, sentCount, failedCount, removedCount, targetedUsersCount }):

Format alert (Function node)javascript
msg.notification = {
  title: "Boiler High Temperature",
  body: `Boiler #2 reached ${msg.payload}°C`,
  urgency: "high",
  tag: "boiler-2-temp",
  url: "/dashboard/boilers",
  requireInteraction: true
};
return msg;