tauri-plugin-healthkit
This plugin provides access to HealthConnect (Android) and HealthKit (iOS).
| Platform | Supported |
|---|---|
| Linux | x |
| Windows | x |
| macOS | x |
| Android | ✓ |
| iOS | ✓ |
Install
Coming soon.
We plan to publish this plugin on crates.io and npm.
Usage
Requirements
- Gradle 8.1.1 or higher
- Android Gradle Plugin 8.9.1 or higher
- compileSdk 36 or higher (Android 14+)
- minSdk 26 or higher (Android 8.0+)
src-tauri/gen/android/app/build.gradle.kts
android {
compileSdk = 36
namespace = "com.tauri.dev"
defaultConfig {
minSdk = 26
targetSdk = 36
}
}
src-tauri/gen/android/build.gradle.kts
dependencies {
classpath("com.android.tools.build:gradle:8.9.1")
}
src-tauri/gen/android/buildSrc/build.gradle.kts
dependencies {
compileOnly(gradleApi())
implementation("com.android.tools.build:gradle:8.9.1")
}
src-tauri/gen/android/gradle/gradle-wrapper.properties
Adding the Plugin
Add the plugin to your Tauri application:
src-tauri/src/lib.rs
Usage Example
Specify the permissions you need for HealthConnect (Android):
src-tauri/gen/android/app/src/AndroidManifest.xml
<!-- Health Connect permissions -->
Contributing
Pull requests are welcome.
Please see CONTRIBUTING.md for more information.