4.3.94
- Flutter Package: Available here
- Example app: Available here
Requirements
iOS 13.0+ Android 9.0+ (Level 28, P, Pie)Installation
Add ependency on SpikeSDK in your pubspec.yaml file:iOS Setup Guide
Usepod install
and pod update
commands from ios/
folder of your app to install/update SpikeSDK.
iOS Signing & Capabilities
To add HealthKit support to your application’s Capabilities.- Open the
ios/
folder of your project in Xcode - Select the project name in the left sidebar
- Open Signing & Capabilities section
- In the main view select ’+ Capability’ and double click HealthKit
Info.plist
Add Health Kit permissions descriptions to yourInfo.plist
file:
Android Setup Guide
To add the SDK to your Android project, you have to add the following to your project’sbuild.gradle
file in the repositories block.
To add the SDK to your project, you have to add the following to your project’s build.gradle
file in the repositories block.
Android permissions
Include the necessary health permissions in yourAndroidManifest.xml
to fully leverage the Spike SDK and access data from apps integrated with Health Connect. Please refer to this guide for details on the required permissions.
Note: Only request permissions essential to your app’s functionality. Requesting unused permissions will lead to app store rejection!
android/app/src/main/kotlin/{YOUR_PACKAGE_ID}/MainActivity.kt
. You must see something like that in case it is the new app being developed:
FlutterActivity
to the FlutterFragmentActivity
which means that your code should turn into the result similar to the one below: