Why does Samsung Health send webhooks with empty data?
When Samsung Health (read via Health Connect) returns empty payloads, work through three things
When Samsung Health (read via Health Connect) returns empty payloads, work through three things:
Samsung Health must grant access to Health Connect, enabled inside Samsung Health's settings. Your app does not control this.
Health Connect must grant access to your app, the layer you do control.
Data must actually be in Health Connect on the device. Check under Data and Access in Health Connect; an empty screen means nothing has synced from Samsung Health yet.
For the data to reach your destination, either the scheduler must be on or you must fetch explicitly:
With
schedulerOn = true(default oninitConnection), the SDK auto-fetches via WorkManager and sends data to your webhook (activity every 20 minutes; daily/body/sleep/nutrition every 8 hours).With
schedulerOn = false, your app must call the getter functions (getDaily,getActivity, etc.) withtoWebhook = trueto retrieve and send data.
A direct Samsung Health connection (Samsung-tagged SDK build) is available as an alternative, but requires Samsung business-partner approval. See the Android SDK reference.
Last updated
Was this helpful?