Is there any way to check if devices have active tracking ON/OFF in a database via the SDK?

Applies To

  • MyGeotab SDK


Information of whether active tracking is enabled or not can be found within the isActiveTrackingEnabled field of the Device object.

The JavaScript example below will display the status of the active tracking setting for every device in a database:"Get", {
"typeName": "Device"
}, function(devices) {
devices.forEach(function(device) {
console.log(`${device.serialNumber} isActiveTrackingEnabled: ${device.isActiveTrackingEnabled}`);