Device Info
Information set to the device using the CloudControl - e.g. Location and Tags.
All methods
Method | Description | Supported since |
---|---|---|
getLocation() | Returns location when assigned to device | 5.2.0 |
getOrganizationTags() | Returns list of organization tags when some assigned to device | 5.2.0 |
getLocation()
Location is requested from server on application start, automatically updated when changed and persists in local storage.
Javascript
sos.deviceInfo.getLocation();
interface IDeviceLocation {
name: string;
customId?: string;
description?: string;
}
getLocation(): Promise<IDeviceLocation | null>;
getOrganizationTags()
Location is requested from server on application start, automatically updated when assigned or unassigned and persists in local storage.
sos.deviceInfo.getOrganizationTags()
interface IOrganizationTag {
name: string;
}
getOrganizationTags(): Promise<IOrganizationTag[]>;