I’m building an iPad/iPhone app, and I started with the “sidemenu” starter app.
When I run the app in both the simulator and device and rotate the orientation between portrait and landscape, the app does nothing - it is stuck in portrait view. I know that the device itself does not have any orientation locks on because the home screen and other apps will respond to the orientation change without issue.
I’ve tried messing with the config.xml options (adding <preference name="orientation" value="landscape"/>), but all that does is lock the app in landscape view rather than allowing it to switch between portrait and landscape. Is there some setting that I’m missing that can enable dynamically switching between orientations?
Thanks for the suggestion. I changed the value to what you recommended and that didn’t seem to have any effect.
I tried a completely vanilla version of the sidemenu and tabs starters - I didn’t make any changes at all and immediately ran them in an iPad simulator and the orientation won’t change. Is there something I need to do in my JavaScript to detect that the orientation changed and instruct the app to redraw itself? I didn’t find any documentation about that anywhere.
I wanted to provide an UPDATE. I looked through the Cordova (not Ionic) documentation and discovered that the proper tag to add in the config.xml file is the following: