[w3c/screen-orientation] cordova-plugin-screen-orientation does not work (#123)

I need help from someone! I try use the plugin above with code: `function fixpositionscreen(){
 try{
  alert('trying...');
  if (screen.orientation.lock('portrait-primary')) { alert('yes, it was blocked');}
  else {alert('no, it was not blocked....');}
 }
 catch(err){
  alert(err);
 }
}
fixpositionscreen();

So, I receive message saying: "yes, it was blocked' but the screen is not locked. Help me.
PS: SO   is Android
Cordova/Phonegap 8.0
Using phonega serve command for provider server of application

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/screen-orientation/issues/123

Received on Tuesday, 13 November 2018 13:00:22 UTC