[ 
https://issues.apache.org/jira/browse/CB-7780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178066#comment-14178066
 ] 

Eser Esen commented on CB-7780:
-------------------------------

You can reproduce this (at least with 3.6.3), create the project as usual, set 
target device to handset in and also orientation to portrait only in 
config.xml, so iphone is preselected on xcode, add platform ios, start xcode 
loading the project.
Now you will see iphone preselected and portrait only, all other 3 orientations 
are NOT ticket.
Now if you install that app on the ipda or iphone on ios8 (ONLY install), then 
hold your device in landscape mode and start the app, depending on the webapp 
you developed you might get the scaling issue, the webapp looks cut.

The funny part is: I got back to xCode, then switched the device to iPad only, 
and saw all 4 orientations ticket by default (looks like config.xml is not 
affecting this setting for ipad, because target device was handset???), i 
UNTICK all orientations except portrait, so iPad also supports only portrait.

Now i install the app again, hold device in landscape mode, start app. App 
starts in portrait mode looking fine. So i thought, i could solve this issue by 
creating a cordova project WITHOUT ipad stuff at all. If i create a blank xCode 
project and select iPhone only, i wont see any iPad resource in the project. 
But using cordova, it puts all the iPad stuff in the project. So i need to be 
careful. My app got rejected at Apple (10.6), quote, "The app does not scale 
properly", and the app is for iPhone only. So i had to switch to iPad, unselect 
(Upside down (both) and landscape), then rebuild, works fine.

Heres the stackoverflow question on how to build a cordova project without iPad 
resources, since xCode seems to support adding iPhone stuff only into the 
project.

http://stackoverflow.com/questions/26357130/cordova-3-6-0-add-only-iphone-support-no-ipad-at-all

> iPhone app on iPad (iOS 8)
> --------------------------
>
>                 Key: CB-7780
>                 URL: https://issues.apache.org/jira/browse/CB-7780
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.6.3
>            Reporter: Tom Bell
>
> When running an iPhone only, portrait only app on an iPad running iOS 8, the 
> viewport is pretty messed up.
> I've tested this using a blank Cordova project from scratch. Removing the 
> `height` and `width` options from the viewport. The viewport seems to resize 
> to half the screen width, when viewing in landscape.
> It should keep the normal portrait viewport and be portrait.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to