Hybrid mobile app and device orientation

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.
1 answers

Take a look at this stackoverflow question:


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.