Hybrid mobile app and device orientation

0
Is it possible to detect the device orientation and rotation in a hybrid mobile app? I would like to support device orientation and create a responsive page. EDIT: I only want the page to rotate when the device is rotated. When using the View Hybrid Mobile App option, the page does not respond to device rotation, it stays in portrait mode. When I open the page in Safari on my iPhone and rotate the device, the page rotates too.
asked
1 answers
1

Take a look at this stackoverflow question:

http://stackoverflow.com/questions/5284878/how-do-i-correctly-detect-orientation-change-using-javascript-and-phonegap-in-io

You could do exactly the same package up the code into a widget and add it to the mendix layout.

I checked the mendix phonegap build and orientation is included so the implementation suggested should work.

answered