The activitiy "Browser.isPortrait" does not fire, however. I checked in the c2runtime, and it looks like the code is very basic:
- Code: Select all
Cnds.prototype.IsPortraitLandscape = function (p)
var current = (window.innerWidth <= window.innerHeight ? 0 : 1);
return current === p;
Now, this always returns landscape of course, because the iframe's width is larger than it's height, no matter what the device orientation is. How can I display a message asking the user to turn the device inside an iFrame?