SecurityError HRM

SecurityError HRM

BY 14 Apr 2014 Web Application Development

Hello,

 

I am currently working on a widget that uses the heartrate of the user to manipulate the

design of the watch. I obtain the data using this methods:

window.webapis.motion.start(“HRM”, onchangedCB);

function onchangedCB(hrmInfo) 
{
   if(hrmInfo.heartRate > 0)
       hr = hrmInfo.heartRate;
}

I also have the healthinfo priviledge enabled in my config.xml.

Everytime i try to start the application from eclipse onto my gear 2 neo, I get the following Error:

SecurityError: The application does not have the privilege to call this method.

 

Do I miss a privliedge I might need?

 

Kind regards, Lukas

 

 

Written by