SDK usage report
Available starting SDK 2.3.0
The Data SDK sends a usage report to the Corsano cloud for the bracelet that is connected at that moment. It tells Corsano which bracelet, firmware and SDK version your app runs, when the bracelet last synced, its battery state, how long it has been worn and how many summary slots the SDK holds for the latest day.
There is nothing to integrate: no API to call, nothing to configure in DataSdk.Config, and no
manifest change. The report is scheduled when the SDK is initialized (CorsanoSdk.initialize()
with a DataSdk.Config) and cannot be turned off.
When a report is sent
- Every 12 hours, through a background
WorkManagerjob. The job only runs while the phone has a network connection. - A report needs a licence key that was checked, a connected bracelet, and one completed
download from that bracelet. While any of these is missing the report is not sent and does not
fail: it stays pending and goes out as soon as the missing piece arrives — when the licence key
check returns, when
subscribeDeviceForDownload()subscribes a bracelet, when a bracelet connects, or when a download completes. So the first report is sent shortly after the first download from a bracelet, rather than up to 12 hours later. - Once a report has been sent, the 12-hour schedule sets the pace again; restarting the app does not send an extra report.
- If the request fails (no answer, or any non-2xx response),
WorkManagerretries it with backoff. The SDK gives the request 15 seconds to connect and 30 seconds to answer. - While the licence is locked no report is sent (since 3.0.0), and the reports missed during a lock are not sent afterwards. See Licence Key.
The report is sent to:
POST https://api.health.cloud.corsano.com/app-sdk/devices
If your app restricts network traffic (a network security configuration, or a firewall or MDM allowlist on managed devices), make sure this host is reachable.
What is sent
{
"serial_number": "2B41234567",
"license_key": "your-licence-key",
"plan": "5",
"last_sync_date": "2026-09-01T09:14:32.118+02:00",
"first_pairing_date": "2026-06-17T11:02:07.000+02:00",
"fw_version": "9.50",
"sdk_version": "3.0.0",
"battery_percentage": 78,
"worn_minutes": 12480,
"is_charging": false,
"latest_summary": {
"date": "2026-08-31T00:00:00.000+02:00",
"db_row_size": 5170
}
}
| Field | Type | Description |
|---|---|---|
serial_number | string | Serial number, read from the connected bracelet. When the bracelet does not answer, the last serial number read from that same bracelet. |
license_key | string | The licence key the SDK was initialized with. |
plan | string | Bracelet plan id (DevicePlan), read from the connected bracelet. "-1" when it is unknown or could not be read. |
last_sync_date | string | When the last download from this bracelet completed. |
first_pairing_date | string | When the SDK completed its first download from this bracelet. |
fw_version | string | Firmware version as major.minor, read from the connected bracelet. |
sdk_version | string | Android SDK version. |
battery_percentage | int | Battery level, 0–100, read from the bracelet. When that read fails, the value of the newest activity record in the SDK database; 0 when there is none. |
is_charging | bool | Whether the bracelet is charging. Same source as battery_percentage. |
worn_minutes | int | Total minutes this bracelet has been worn since the SDK started counting. It only grows. |
latest_summary | object or null | The most recent day for which the SDK database holds a daily summary. null when it holds no summary yet. |
latest_summary.date | string | Local midnight of that day. |
latest_summary.db_row_size | int | Number of summary slots of that day that hold a measurement, over all summary types. It depends on slotsIntervalSecs. |
Dates use yyyy-MM-dd'T'HH:mm:ss.SSSXXX (milliseconds and the local offset), always with Gregorian
years and ASCII digits, whatever language the phone is set to.
Sync dates, identity and worn minutes are kept per bracelet, so when a user switches bracelets
one bracelet's history is never reported under another's serial number. A second bracelet's
worn_minutes starts from zero.
worn_minutes is counted from the activity records in which the bracelet reports that it is worn,
as they are downloaded. It keeps its total when your app deletes old raw metrics.
Upgrading from 2.2.x or earlier: the SDK only starts recording when it is updated.
first_pairing_dateis the first download completed after the upgrade, not the bracelet's original pairing, andworn_minutescounts from the upgrade. Reinstalling the app or wiping its database also resetsworn_minutesto 0.
Privacy
- The report contains no health measurements:
latest_summaryis a date and a count, not the values. - Neither the request body nor the response body is written to the SDK logs, because the logs can be exported by your app and the report carries the licence key and serial number. Only non-identifying fields and the HTTP response code are logged.
Replaces the per-download device update
Before 2.3.0, the SDK sent a device update to the same endpoint after each download. That call has
been removed: the usage report now owns this endpoint, because running both made them overwrite each
other's last_sync_date and first_pairing_date. The report sends everything the old update did
except frequency, and adds battery_percentage, is_charging and latest_summary. The
BraceletInfo row a download writes to the local database is unchanged.