Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49186

Orientation does not change in ionic starter template "blank" on iOS

$
0
0

@bastan2k wrote:

Hello,

I'm having a problem with the basic ionic orientation change functionality on iOS. No iOS app is updating its orientation when the device is flipped to landscape or portrait mode, it is just stuck in the orientation (landscape or portrait) that the app was opened initially. I do neither face this problem on android nor in the basic cordova example app described here, where the helloWorld app is changing its orientation acording to the devices orientation also on iOS.

Here is what I did:

I've created a new ionic "blank"-app, added the ios platform and builded it with ionic CLI like so:

ionic start blankionicapp blank
cd blankiconicapp
ionic platform add ios
ionic build

Next I opened the xcodeproj-File from the platforms/ios directory and checked all checkboxes under Deployment Info referring to "Device Orientation".

After that I've run the app on both an iphone and an ipad with the same result: No Orientation changes in the ios app.
I've also tried adding either

<platform name="ios">
<preference name="Orientation" value="all" />
</platform>

or/and

<config-file platform="ios" target="*-Info.plist" parent="UISupportedInterfaceOrientations">
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</config-file>
<config-file platform="ios" target="*-Info.plist" parent="UISupportedInterfaceOrientations~ipad">
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</config-file>

in the config.xml without luck.
My system information is:

Cordova CLI: 5.4.0
Ionic Version: 1.1.1
Ionic CLI Version: 1.7.8
Ionic App Lib Version: 0.6.4
ios-deploy version: 1.7.0
ios-sim version: 4.1.1
OS: Mac OS X Yosemite 10.10.5
Node Version: v0.12.7
Xcode version: Xcode 7.1.1 Build version 7B1005

Any help is appreciated.
Thanks!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>