Problem getting hrm value with Human Activity Monitor after restarting gear s2

Problem getting hrm value with Human Activity Monitor after restarting gear s2

BY 20 Sep 2016 Web Application Development

Hi guys
I’m encountering a strange problem with my simple gear s2 app. I use Human Activity Monitor api to constantly sample the heart rate. Each time I install the app from tizen IDE it works as expected but once I restart the watch and start the app without reinstalling, it doesn’t work anymore while the screen is off. Meaning from that moment every time the screen goes off after a few seconds the heart rate updates stops as well. When I reinstall the app it works fine in the background again untill I restart the watch. I included background support in the xml and also use the tizen.power.request(“CPU”, “CPU_AWAKE”) command. i’ll appreciate any help with this issue.

Written by