---
title: "register device · RUAL Documentation"
description: "Registers a device's notification token for a user. A RUAL realtime block in the notifications group. See its 8 input and 4 output pins and its version history."
canonical: https://docs.rual.nl/block-types/realtime/notification_device_set
language: en
---

# register device

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).

Registers a device's notification token for a user.

- flow

- user `value` default the run's socket's user

- platform `value` required ios or android

- token `value` required

- voip token `value`

- environment `value` production or sandbox

- app `value`

- storage `value`

- flow

- success `condition`

- device `object`

- error `value`

An upsert by token: a token registered by another user moves to this one. platform is ios or android; environment (iOS) is production or sandbox; voip_token is the PushKit token for call rings. user defaults to the run's socket's user. Written through the registry store (default notification_devices), so notification_send sees it at once.

## 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
