Version
Current Flutter SDK Version:4.7.14
Resources
- Flutter Package: Available here
- Example app: Available here
Requirements
- iOS Version:
13.0+ - Xcode 26+ is required.
- Android Version:
9.0+(Level 28, P, Pie)
Installation
Add a dependency on Spike SDK 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 the 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.
local.properties file:
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:
android:launchMode="singleTop".
Note: If the app is not building, it might be related to the label replacement issue. In this case, you should add tools:replace="android:label" to the application tag:
