Is there any way to have different orientations based on device? Like landscape for iPad and portrait for iPhone?
Hmm, no, not really. There’s the dynamic_orientation option in game.project and if it’s disabled you’ll get a fixed orientation based on the width and height that you defined. If dynamic_orientation is enabled you’ll be able to get some control using GUI layouts but it’s probably not going to be enough anyway.
Mmmm yes. Any plan to give control on width and height so that it can be defined from code?
I believe there has been talks of adding functionality to control window size on desktop, but not on mobile. I wonder how this is handled in other engines? Can you get a single IPA/APK that starts with different orientations depending on hardware/screen resolution?
Corona does it. I don’t know the details though. So it is possible.
Workaround is to ask the OS what is the current orientation and rotate the entire scene.