Security exception while accessing HRM

Security exception while accessing HRM

BY 13 Dec 2018 Web Application Development

Hello,

I’m trying to run the sample as shown here, https://developer.tizen.org/ko/development/guides/web-application/sensors/human-activity-monitor?langredirect=1#retrieve on the Samsung Galaxy watch. But, I get a “SecurityError: Permission denied” exception.

I have these privileges defined in my config.xml.

<tizen:privilege name=”http://tizen.org/privilege/healthinfo”/>
    <tizen:privilege name=”http://tizen.org/privilege/location”/>
    <tizen:privilege name=”http://developer.samsung.com/privilege/accessoryprotocol”/>
    <tizen:privilege name=”http://developer.samsung.com/privilege/healthinfo”/>
    <tizen:privilege name=”http://developer.samsung.com/privilege/medicalinfo”/>

The same happens when I try to execute the equivalent native code too. Am I missing anything? Thank you.

Written by