Flutter
Usage Guide
Spike SDK Usage
Step 1 - Create Spike connection
To set up the Spike SDK create SpikeSDKV3
instance with your Spike application id, application user id and signature unique to each of your apllication users (more on generating signatures here):
Step 2 - ask user for permissions
If you plan to use Android Health Connect and/or Apple HealthKit data providers you should first get users permission to use their data:
Step 3 - Get data
Info: The maximum permitted date range is 90 days
There are two types of data you can retrieve from Spike:
- Records consist of the raw data points collected from user devices or applications.
- Statistics, on the other hand, are calculated values derived from records.
Statistics
Now you can read hourly statistics data of steps and distance for today:
where:
Records
where: