SpikeConnectionV3
instance with your Spike application id, application user id and signature unique to
each of your apllication users (more on generating signatures here):
checkSamsungHealthDataAvailability
method:
requestPermissions
method:
StatisticsFilter(providers: {Provider.samsungHealthData})
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.Provider.samsungHealthData
to get only Samsung Health data:
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.