IoT

IoT

If your app uses IoT devices, you might find it useful to attach device data (eg. fw version, bt version, battery status...)

App.kt
val connectedDevices = listOf(getConnectedDevices())
for(device in connectedDevices) {
Shake.setMetadata("firmwareVersion", device.getFirmwareVersion())
Shake.setMetadata("bluetoothVersion", device.getBluetoothVersion())
Shake.setMetadata("batteryStatus", device.getBatteryStatus())
}