Dear Developers,
I’m working with the Samsung Health Sensor API (v1.3.0) to collect Inter-Beat Interval (IBI) data from a Galaxy Watch. My goal is to gather IBI samples periodically (e.g., every hour for 10 minutes) even when my app is not active and the screen is off.
Current Implementation
- Using
HealthTrackerType.HEART_RATE_CONTINUOUS
to subscribe to IBI data. - Scheduling data collection with
WorkManager
. - Data is saved locally after validation.
Issue
Data collection only works when the screen is on or the app is active. When the screen turns off or the app is backgrounded, the Health Sensor API stops delivering IBI data.
Desired Behavior
- The app should collect IBI data at scheduled intervals without requiring user interaction or the screen to be on.
- Example: Collect 10-minute IBI samples every hour, even overnight.
Thank you for your guidance. I appreciate any documentation or examples you can share.
Abasin