Flutter
Spike Flutter SDK is a library on top of HealthKit that
- helps with the extraction of data.
- pushes data to SpikeAPI and delivers standardized data.
Requirements
- iOS 13.0+
- Xcode 13.0+
Signing & Capabilities
Go to your target's Signing & Capabilities section and add HealthKit.
Allow Clinical Health Records, Background fetch, and Background Delivery.

More details you can find here.
Info.plist
Add Health Kit permissions descriptions to your Info.plist file.
Installation
You can download the Flutter SDK code here. Please import the following libraries to your code:
Configuration
To set up Flutter SDK please provide the user ID, client ID, and auth token. You can find tokens on the Spike developer console. Typically _userId will be a user ID from your application. Personal identifiable information should not be used in the _userId.
Getting Data
Reading Apple HealthKit data
Background data updates
SpikeTaskRunner enables background tasks to send data to the backend periodically.