Languages

Menu
Sites
Language
[Galaxy watch SM-R800] Service app not sending sensor data to API when watch display is off in KC - Prokiosk mode.

I am facing an issue of data not being send to API from service app when display is off in KC- Prokiosk mode.

Service app is continuously fetching data from sensors(Pedometer, Heart rate and pressure) and store it in sqlite.

There is a task running in service app which sends data to API. For fetching, I am using System.Timer which will pull data from sensor at every 1 second interval.

This all works perfectly fine if display is on. As soon as display turns off, data no more getting sync with server.

Tried keeping pause policy to ALL (_pedometer.PausePolicy = SensorPausePolicy.All) for every sensor, to keep sensors alive.

Responses

1 Replies
Tizen .NET

Hi, 
If you hold the CPU Lock, you can receive sensor events in lcd off statue. However, battery consumption issue occurs.
For Pedometer, if you specify <background-category value="sensor" /> in tizen-manifest.xml file, you can get the cumulative number of steps every 20 minutes in lcd off state.
For HRM, we are reviewing APIs to support HRM sensor data batching in tizen 5.5 based Galaxy Watch models.
In addition, SENSOR_PAUSE_ALL means that sensor pauses when lcd is off, the power-save mode is enabled or the system goes into sleep mode. (description about sensor_pause_e in native api)

Thanks.