This component displays the devices for all the users in an application, or for one user in an application.
You can currently sort devices on device id, uid and lastupdatetime.
By default this component will sort by lastupdatetime Descending
The following code lists the devices for an application sorted by device id ascending, with a pagesize of 20.
deviceInfo.id {$deviceInfo.id} - deviceInfo.uid {$deviceInfo.uid} - deviceInfo.latitude {$$deviceInfo.latitude} - deviceInfo.longitude {$$deviceInfo.longitude}
No devices have been found.
In this example, the avatar for user with ID '1' will be returned as HTML with a width attribute: <img src="/static/1/images/global/male11.png" width="50" alt="Firsty McLastname"/>
Name | Required | Default | Description |
---|---|---|---|
fields | Optional | id, uid, lastupdatetime | Comma-separated list of fields you would like to use. See the 'Template variables' section for a list of supported fields |
pageSize | Optional | 100 | The number of items per page |
sort | Optional | created DESC | Sortfield. You can currently sort devices on device id, uid and lastupdatetime. By default this component will sort by lastupdatetime Descending; to sort Ascending use for example 'uid ASC' |
startPage | Optional | 0 | The starting page. This is a 0-based index |
Name | Description |
---|---|
deviceInfo.id | The id of the device |
deviceInfo.uid | The id of the user |
deviceInfo.vhost | The id of the application |
deviceInfo.latitude | The latitude of the device. Ie: 43.635609 |
deviceInfo.longitude | The longitude of the device. Ie: -79.424858 |
deviceInfo.lastupdatetime | The datestamp of the last occurance that the device was used to connect to the application. Ie: 2012-12-07 11:40:56 |
deviceInfo.commentnotification | Indicates whether the user enabled their comment notifications or not. Values: 1 (yes) or 0 (no) |
deviceInfo.assignmentnotification | Indicates whether the user enabled their assignment notifications or not. Values: 1 (yes) or 0 (no |
deviceInfo.settings | A serialized string with the user's settings: ie: a:1:{s:22:"notificationBadgeCount";s:1:"0";} |
The following code lists the devices for the user with id 1928796, and sorts the results by the device lastupdatetime descending, with a pagesize of 10.
deviceInfo.id {$deviceInfo.id} - deviceInfo.uid {$deviceInfo.uid} - deviceInfo.lastupdatetime {$$deviceInfo.lastupdatetime}
No devices have been found.