Extra: Background steps
Track and upload steps from Android System in background.
Introduction
This feature included in rook_sdk_health_connect enables automatic extraction and upload of steps without needing to install Health Connect.
Android Studio
Go to the main Android Studio section to see the IDE configuration.
Getting started
Android configuration
Go to the main Android configuration section to see the basic configuration.
Logging
Go to the main Logging section to configure logs.
Usage
Initialize
Go to the main Initialize and Update userID sections to initialize.
Check availability
Before proceeding further, you need to ensure the user's device has the required sensors.
Call isAvailable:
void isAvailable() async {
final isAvailable = await AndroidStepsManager.isAvailable();
}
Permissions
To use AndroidStepsManager you will need:
- Android permissions: Go to the main Android Permissions section to see the implementation.