Send push notifications
Subscribe a browser and send targeted alerts from Node-RED.
On this page
Subscribe and send a test alert
- Add an nrc profile widget and open the dashboard through your secure NR Connect address.
- Enable Push Notifications and allow notifications in the browser permission prompt.
- Wire an Inject node to nrc notify (nr-connect-notify). Set a test title and body; choose recipients who have access to this instance.
- 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.
| Field | Purpose |
|---|---|
| Title / Body | Static text or dynamic msg/flow/global properties. Blank Title falls back to msg.topic, then Node-RED Alert. |
| Recipients | All instance members, Admins & owner only, or a comma/semicolon-separated list of specific emails. |
| Page Scope | Optional 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 }):
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;