journey.device
Version compatibility
journey.device
was introduced with version 4.29.0 of the JourneyApps Container.
Returns information about the device that the container is currently running on.
Supported fields
Property | Description | Example |
---|---|---|
| Return the device platform that the user is on. One of:
|
|
| Return the manufacturer of the current device. |
|
| Returns the model of the current device. |
|
| Whether the user is on a phone.
e.g.
Returns |
|
| Whether the device (mobile / tablet only) is in portrait or landscape mode. This is a field that is automatically updated as boolean value. |
|
| A more expressive form of |
|
| Returns the ID of the device. See below for more details. |
|
journey.device.id
Version compatibility
journey.device.id
was introduced with version 4.76.0 of the JourneyApps Runtime.
The device's unique identifier can be used to group different containers running on the same device. There are some caveats with this ID.
On iOS, the device's identifier was stored in the Keychain before Container 20.6.1. This ID was different for each container, and will be persisted even if the container is uninstalled from the device. Furthermore, on iOS, the device's ID will only match if the first two parts of the container's bundle ID match. For example: com.acme.one
and com.acme.two
will share the same device ID.
The device ID is provided directly by the device, and its format is not necessarily the same across different platforms. It can be upper- or lower case, and may or may not have hyphens. The length can also vary. Treat it as a unique string.
Last updated