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 his/her device
location_permission_denied When user has denied location permission to your app
location_low_accuracy When user has denied location at high accuracy, or when user's device doesn't have high accuracy GPS

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

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 ""