IBI Data Collection Stops When Screen is Off

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

Hello,

Please report this issue to the Developer Support for 1-on-1 communication.
It will solve your problem faster.

Thanks
Shamima
Samsung Developer Program Team

Hi @Ab_Ab
I’m facing the same problem.
Did you manage to solve this problem?

Hi @jorge.abdalla,

I contacted Samsung about this and they confirmed that IBI data is still collected when the screen is off, but the delivery method changes to save battery. Instead of streaming in real time, the data is gathered with 1 Hz frequency in the background and delivered in batches every few minutes.

If you need to access the data sooner than the system delivers it, the flush() method can force an earlier update, though it may impact battery life.

In my own testing, I found that the IBI data collected when the screen was not on, was inaccurate and for my use case, not usable. This might vary depending on the device but it’s something to consider if you’re relying on high-quality data.

@Ab_Ab

Thanks for your reply.
Since I’m justing testing this for now, so I will try to use it even if the data is not high-quality.

I’m not sure if you faced this, but I’m receiving all the IBI lists in the first DataPoint when the screen is off. Did you manage to understand how to determine which timestamp the data belongs to? I’m trying to reach Samsung Support, but still no answer in this matter.

@Ab_Ab Also, why don’t you think it’s high-quality data? Is there any study about this?