Currently working on a small Cordova application for Android and iOS, but encountering difficulties with the "orientationchange" event on iOS.
On Android, I was able to make it work by adding this line of JavaScript:
window.addEventListener('orientationchange', onOrientationChange, false);
However, on iOS, the event does not seem to be triggered. It appears that the UIWebView element in iOS does not support events at the window level.
Does anyone have any suggestions on how to detect this event in an iOS Cordova application?
Thank you!