hello,
I would like to use "tizen.power..." functions but it works only partially
Either it works or I get an error Uncaught SecurityError : Permission denied.
If it does not work in run mode I use debug mode and it works... and vice-versa..
I have set the power privilege line in the config.xml file
What could be wrong, below is my code
var etat=0;
function mytimer(){
switch(etat){
case 0:{
tizen.power.setScreenBrightness(0);
break;
}
case 1:{
tizen.power.setScreenBrightness(0.5);
break;
}
}
console.log("command: "+etat);
etat++;
if (etat == 2){etat=0;}
myVar = setTimeout(mytimer,3000);
}