Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.4.2
-
None
Description
Migrated from Issue #99
from lkounadis:
I have a problem when trying to use this plugin with inappbrowser plugin.
The web app is originally set to portrait, and at some point I am trying to open an inAppBrowser and unlock the screen orientation.I have tried to open and set using the code bellow, but both cases put the inAppBrowser to the background:
screen.unlockOrientation();
cordova.InAppBrowser.open(url, target, options);
OR
cordova.InAppBrowser.open(url, target, options);
screen.unlockOrientation();The only way I have got it to work correctly is by setting the inappbrowser to open using a timeout:
screen.unlockOrientation();
setTimeout(function(){
cordova.InAppBrowser.open(url, target, options);
},100)