DataSapien Flutter SDK - Health Module
Health module plugin for DataSapien Flutter SDK.
Installation
Add this to your package's pubspec.yaml file:
dependencies:
datasapien_sdk: ^0.2.0
datasapien_sdk_health: ^0.2.0
Usage
No code changes are needed! Simply add the dependency to your pubspec.yaml and the core SDK will automatically discover and use health collectors.
import 'package:datasapien_sdk/datasapien_sdk.dart';
// Initialize SDK as usual
final config = DataSapienConfig.builder()
.setAuth(...)
.setHostUrl(...)
.setMediaUrl(...)
.build();
await DataSapien.initialize(config);
await DataSapien.setup();
// Health data collection will work automatically if health module is included
Requirements
Android
- Minimum SDK: API level 26+ (required by Health Connect)
iOS
- Minimum iOS: 17.0+
Platform-Specific Setup
Android
Health permissions are requested automatically by the native SDK when needed. Ensure your AndroidManifest.xml includes read health data permissions
iOS
HealthKit permissions are requested automatically by the native SDK when needed. Ensure your Info.plist includes health data usage descriptions
Version Compatibility
The health module plugin version should match the core SDK version for compatibility. Check both pubspec.yaml files to ensure versions align.
Support
For issues and questions, please contact support@datasapien.com or open an issue on GitHub.
Libraries
- datasapien_sdk_health
- Health module for DataSapien Flutter SDK