Sensorservice in tizen wearable web api is not working when display is off

Sensorservice in tizen wearable web api is not working when display is off

BY 27 Jun 2016 Web Application Development

Hi

I’m developing app sensing acceleration, gyro, magnet, UV, light, pressure and HRM in gear S.

Recently, I found that sensor api is not working when display is off

When I called sensorservice.getDefaultSensor, it worked well though display is off

But when I called getSensorData (ex: getLightSensor) at off-display, Unknown error is occurred

And sensorChangeListener is not called when display is off

It happened to sensor api only, HRM or devicemotion(acceleration and gyro) is not

How can I solve this problem without always-on-display?

Written by