Device Health

The device health object contains the device's location, network and battery status.

Health Object

Name Type Description
location_status String Specifies if the location is available to the SDK
network_status String Specifies if the device has network connectivity with the HyperTrack server
battery_status String Specifies if the device is charging or discharging
battery_percentage Integer Battery on the device, reported in percentage

Location status

Location status Description
location_available When user location is available from the SDK
location_disabled When user has turned off location on the device
location_permission_denied When user has denied location permission to your app

Network status

Network status Description
network_online When the device has network connectivity with the HyperTrack server
network_offline When the device has lost network connectivity with the HyperTrack server. The device may have lost connectivity either when user disables data and wifi connections or when network conditions are patchy. Note that there is no way to differentiate between the two

Battery status

Battery status Description
charging When the device is connected to a charging source
discharging When the device is not connected to a charging source

Sample JSON

{
    "location_status": "location_available",
    "network_status": "network_offline",    
    "battery_status": "charging",
    "battery_percentage": 13,
}

results matching ""

    No results matching ""