Languages

Menu
Sites
Language
cannot use HRM api !

I tried to look for information and example for HRM Api and found this example 

https://developer.tizen.org/ko/forums/web-application-development/get-data-heart-rate-sensor-wearable-devices

 

but this example doesn't work on my gear2 device and security Error occured. Error message was like this 

  js/main.js (68) :SecurityError: The application does not have the privilege to call this method

 

I tried sevral times with dev guide of 2.3 and 2.2.1 version and those api doesn't help at all . 

I thought that the problem is related to priviledge, so added every priviledge to make them work but failed. 

So, my question is "Is HRM api not supported for gear2 yet?"

or ~ did anyone tried and successed to make it work? 

Responses

2 Replies
daniel kim

Hi,

I suggest you to add these privileges into your code.

   <tizen:privilege name="http://developer.samsung.com/privilege/healthinfo"/>
    <tizen:privilege name="http://developer.samsung.com/privilege/medicalinfo"/>

I wish this will help you.

AVSukhov

Hello,

For more info please see:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.wearable.web.device.apireference/tizen/humanactivitymonitor.html