send notification
This block is part of the realtime group and was last modified in core v15.0.2.
send notification v15.0.2 Sends a phone notification to users' registered devices or to given devices, through APNs and FCM.
- flow
- to
arrayuser guids: every registered device of each
- devices
arrayexplicit devices: {platform, token, voip_token, environment}
- alert
objecttitle, subtitle, body, sound, badge, category, thread_id, interruption_level
- data
object - apns
objectpush_type, priority, expiration, collapse_id
- fcm
objectpriority, collapse_key, ttl, notification, channel_id
- storage
valuethe device registry; default notification_devices
- apns provider
valuea service provider name; default the entity's binding
- fcm provider
valuea 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.
v15.0.2: block added in this release.
Back to
realtime Return to the main group to view all sub-groups Back to notifications Return to the group to view all blocks within this group