Page orientation lock on portrait on one page
Hi,
I have read all the forum posts here around this topic, but there is no solution. Is it possible to lock the page orientation on 1 page to portrait, so the rotation is not possible?
I have also configured the https://github.com/yoik/cordova-yoik-... plugin. I have put on this code on the specific page:
Code: Select all
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady()
{
var so = cordova.plugins.screenorientation;
so.setOrientation(so.Orientation.PORTRAIT);
} Is there anybody who succesfull implement this plugin? Is there any workaround?