Introduction
The ROOK Flutter SDK for Samsung Health enables developers to integrate health data from Samsung devices into Flutter-based applications. To ensure successful implementation, the development environment must support Dart version 3.0.0 or higher and Flutter version 3.0.0 or higher, utilizing a modern Android Studio version. The integration process requires manual configuration of the Samsung Health Data AAR file within the project's library directory and the inclusion of specific Gson dependencies. Key architectural features include user authorization management, registration workflows, and the ability to schedule automatic data synchronizations in the background. Note that this SDK is strictly compatible with physical devices running Android 10 or above with Samsung Health version 6.29 or later, as emulator environments are not supported.
Install the rook_sdk_samsung_health package and learn about its features.
Features
- Get authorization.
- Register users.
- Sync Samsung Health summaries and events.
- Schedule automatic Samsung Health data syncs in background.
Restrictions
- Samsung Health Data SDK requires Samsung Health v6.29 or later version installation.
- Samsung Health runs on devices with Android 10 (API level 29) or above. It is available on all Samsung smartphones and also non-Samsung Android smartphones.
- The SDK doesn’t support an emulator.
Development environment
Dart and Flutter
This package was developed with the following sdk constraints:
- dart:
>=3.0.0 <4.0.0 - flutter:
>=3.0.0
Android Studio
The SDK requires Android Studio Koala Feature Drop | 2024.1.2 Patch 1 or higher.
Required dependencies
To use this package you'll need to add the following dependencies to your project:
Installation
flutter pub add rook_sdk_samsung_health
In your build.gradle (app module) copy the samsung-health-data.aar file to your project libs directory and include it as a dependency:
dependencies {
implementation(files("$rootDir/libs/samsung-health-data-api-1.0.0-b2.aar"))
// Used by Samsung Health Data AAR:
implementation("com.google.code.gson:gson:2.13.0")
}