- SDK Version: 40 or 41, Managed Workflow
- Platforms(Android/iOS/web/all): iOS
Our app needs to be portrait-only on an iPhone. On an iPad however, we would like to support all screen orientations.
This should be possible on iOS, see here:
- Universal application with Portrait orientation for iPhone and Landscape orientation for iPad - Stack Overflow
- ios - Ipad in landscape mode and iphone in portrait mode - Stack Overflow
It should also be possible in React Native:
So I tried it with the following app.json
ios
section:
"infoPlist": {
"UISupportedInterfaceOrientations~ipad": [
"UIInterfaceOrientationLandscapeRight",
"UIInterfaceOrientationLandscapeLeft",
"UIInterfaceOrientationPortrait",
"UIInterfaceOrientationPortraitUpsideDown"
]
}
However, the app is still locked to portrait mode on the iPad.
How can I get portrait mode on iPhone and all orientations on an iPad?