On a recent i-Pad development project using Phonegap and the Ionic framework we ran into issues with the orientation seemingly being set to portrait only. We had been labouring under the somewhat misplaced apprehension that changes in orientation were just supported with no code being necessary.
Upon looking further into this and seeing what other peoples experiences were there seemed to be a lot of people writing handlers to display when the orientation changed such as this:-
alert('orientation event fire');
On trying this for ourselves we realised that this ‘orientation change’ event was not being fired. Further googling came across this little gem which actually corrected the issue for us.