website logo
⌘K
Quickstart
User
Metrics
Webhooks
iOS SDK
Swift
Flutter
React Native
Errors
Docs powered by archbee 

Flutter

Spike Flutter SDK is a library on top of HealthKit that

  1. helps with the extraction of data.
  2. pushes data to SpikeAPI and delivers standardized data.

Requirements

  • iOS 13.0+
  • Xcode 13.0+
  • Health Kit Reporter 2.1.0+
  • Background fetch 1.0.3+

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.

Info.plist
|


Installation

You can download the Flutter SDK code here. Please import the following libraries to your code:

Dart
|


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.

Dart
|


Getting Data

Reading Apple HealthKit data

Dart
|


Background data updates

SpikeTaskRunner enables background tasks to send data to the backend periodically.

Dart
|




Did this page help you?
Yes
No
UP NEXT
React Native
Docs powered by archbee 
TABLE OF CONTENTS
Requirements
Signing & Capabilities
Info.plist
Installation
Configuration
Getting Data
Background data updates