Navigation

Device

A representation of a device information.

Device vs. Device Identity Every device has an identity called "Device Identity". Device identities are unique across your project, meaning that no two identities are the same. However, any devices that share the same identity can be assumed to be one physical device.

Properties

ID

The ID of the device generated by Rupt.

Identity

The device identity. This is not unique. Any devices sharing the same identity can safely be assumed to a single actual device.

Info

Details containing the type of device and user agent among a few other useful information used to display device icons and help the user recognize the device.

User

The user ID to whom this device is linked.

Status

The status of the device. Possible values:

  • attached
  • detached

Created At

The date this device was first added to the system.

Updated At

The date this device was last updated in the system.

Metadata

The latest metadata that was passed in any identify or attach request using this device.

SDK Syntax

const {
  id: String,
  identity: String,
  info: RuptDeviceInfo,
  user: User.ID,
  status: String,
  createdAt: Date,
  updatedAt: Date,
  metadata: Map<String, String>
} = Device;