---
title: "send notification · RUAL Documentation"
description: "Sends a phone notification to users' registered devices or to given devices, through APNs and FCM. A RUAL realtime block in the notifications group."
canonical: https://docs.rual.nl/block-types/realtime/notification_send
language: en
---

# send notification

This block is part of the [`realtime`](https://docs.rual.nl/block-types/realtime) group and was last modified in core [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

Sends a phone notification to users' registered devices or to given devices, through APNs and FCM.

- flow

- to `array` user guids: every registered device of each

- devices `array` explicit devices: {platform, token, voip_token, environment}

- alert `object` title, subtitle, body, sound, badge, category, thread_id, interruption_level

- data `object`

- apns `object` push_type, priority, expiration, collapse_id

- fcm `object` priority, collapse_key, ttl, notification, channel_id

- storage `value` the device registry; default notification_devices

- apns provider `value` a service provider name; default the entity's binding

- fcm provider `value` a service provider name; default the entity's binding

- flow

- success `condition`

- queued `number`

- devices `number`

- skipped `number`

- error `value`

Resolves every registered device of each user in to (and any devices given), builds the APNs and FCM payloads once, queues one delivery per device and returns; the nodes' workers deliver it with the entity's apns / fcm service provider (apns_provider / fcm_provider name one), retry 429 and 5xx answers up to three times, and remove a token APNs or FCM calls dead. alert: {title, subtitle, body, sound, badge, category, thread_id, interruption_level, mutable_content (true lets the app's service extension rewrite it), content_available}. data: keys beside aps on iOS, the FCM data map (non-strings JSON-encoded). apns: {push_type: alert|background|voip, priority, expiration (unix s), collapse_id (64 bytes max)}. background is a silent wake (priority 5, only the badge of alert); voip is a call ring to the device's VoIP token on <bundle>.voip, its payload the data alone, and on Android a high-priority data message. fcm: {priority: high|normal, collapse_key (default apns.collapse_id), ttl (s), notification (false sends a data-only message the app draws itself; by default an alert carries a notification block Android shows), channel_id}. queued counts deliveries, skipped the devices that could not get one (no VoIP token, no provider). Holding, batching and cancelling a notification are timers in the blueprint, not options here.

## Version history

Introduced in [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

- [`v15.0.2`](https://docs.rual.nl/core-versions/150002): block added in this release.

- [Back to `realtime`](https://docs.rual.nl/block-types/realtime): Return to the main group to view all sub-groups

- [Back to `notifications`](https://docs.rual.nl/block-types/realtime?group=notifications): Return to the group to view all blocks within this group
