SpikeConnectionV3
instance with your Spike application id, application user id and signature unique to each of your apllication users (more on generating signatures here):
StatisticsFilter(providers = listOf(Provider.SAMSUNG_HEALTH_DATA))
to specifically retrieve data from Samsung Health. Alternatively, you can omit the
providers parameter entirely and allow Spike to choose the most suitable data source based on your request.spikeConnection.getUserInfo()
call will only show that Apple HealthKit, Android Health Connect, or Samsung Health Data is enabled after you have successfully retrieved data at least once using functions like getStatistics()
, getRecords()
, or similar data retrieval methods.