You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2012/08/02 21:27:02 UTC

[jira] [Created] (CB-1182) Autorotation is changing in iOS 6

Shazron Abdullah created CB-1182:
------------------------------------

             Summary: Autorotation is changing in iOS 6
                 Key: CB-1182
                 URL: https://issues.apache.org/jira/browse/CB-1182
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: Master
            Reporter: Shazron Abdullah
            Assignee: Shazron Abdullah
             Fix For: 2.1.0


>From Michael SBCERA: 
Autorotation is changing in iOS 6. In iOS 6, the shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientations and shouldAutorotate methods. Read more at http://9to5mac.com/2012/06/25/apple-pushes-ios-6-0-update-to-devs/#tumhkqaj5kDKYOC3.99 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CB-1182) iOS 6 - Autorotation changes

Posted by "Michal Mocny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michal Mocny reassigned CB-1182:
--------------------------------

    Assignee: Michal Mocny  (was: Shazron Abdullah)
    
> iOS 6 - Autorotation changes
> ----------------------------
>
>                 Key: CB-1182
>                 URL: https://issues.apache.org/jira/browse/CB-1182
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Shazron Abdullah
>            Assignee: Michal Mocny
>              Labels: ios6
>             Fix For: 2.1.0
>
>
> From Michael SBCERA: 
> Autorotation is changing in iOS 6. In iOS 6, the shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientations and shouldAutorotate methods. Read more at http://9to5mac.com/2012/06/25/apple-pushes-ios-6-0-update-to-devs/#tumhkqaj5kDKYOC3.99 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (CB-1182) iOS 6 - Autorotation changes

Posted by "Klaus Schmidt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455811#comment-13455811 ] 

Klaus Schmidt edited comment on CB-1182 at 9/15/12 1:13 AM:
------------------------------------------------------------

Hi,

in iOS I've got the problem that, if I run my app with the current state of Cordova 2.1.0, the application window of my app like fullscreen-mode, so on the top of the app, the pixels of the height of the iOS status bar are not existent. It's ok, when I add "[application setStatusBarHidden:YES animated:NO];" in the "didFinishLaunchingWithOptions" in the AppDelegate.m, because then the status bar is hidden and the page is displayed in fullscreen-mode. But we want to have the status bar present. In version 2.0.0 everything is ok.
The meta-tag in index.html is this:
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-densitydpi=device-dpi" />
What can we do? We need the version 2.1.0 because of the issue CB-1219 .

Greetings, Klaus.
                
      was (Author: disy):
    Hi,

in iOS I've got the problem that, if I run my app with the current state of Cordova 2.1.0, the application window of my app like fullscreen-mode, so on the top of the app, the pixels of the height of the iOS status bar are not existent. It's ok, when I add "[application setStatusBarHidden:YES animated:NO];" in the "didFinishLaunchingWithOptions" in the AppDelegate.m. But we want to have the status bar present. In version 2.0.0 everything is ok.
What can we do? We need the version 2.1.0 because of the issue CB-1219 .

Greetings, Klaus.
                  
> iOS 6 - Autorotation changes
> ----------------------------
>
>                 Key: CB-1182
>                 URL: https://issues.apache.org/jira/browse/CB-1182
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Shazron Abdullah
>            Assignee: Michal Mocny
>              Labels: ios6
>             Fix For: 2.1.0
>
>
> From Michael SBCERA: 
> Autorotation is changing in iOS 6. In iOS 6, the shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientations and shouldAutorotate methods. Read more at http://9to5mac.com/2012/06/25/apple-pushes-ios-6-0-update-to-devs/#tumhkqaj5kDKYOC3.99 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1182) iOS 6 - Autorotation changes

Posted by "Avidan Chen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430297#comment-13430297 ] 

Avidan Chen commented on CB-1182:
---------------------------------

This is a major bug for us. 

We have only one screen where the application should change rotation, and after implementing the method shouldRotateToOrientation in JavaScript it works great in iOS <= 5.1. I'm returning true in this method only when the user is viewing a specific page in my app.

However, when tested in iOS 6 DP3 & DP4, this method does not get called at all and the app is stuck in the initial orientation it started in (which in my case is the portrait orientation, as I've indicated in the .plist file of my app).

Fixing this for iOS 6 will be greatly appreciated. 
                
> iOS 6 - Autorotation changes
> ----------------------------
>
>                 Key: CB-1182
>                 URL: https://issues.apache.org/jira/browse/CB-1182
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>              Labels: ios6
>             Fix For: 2.1.0
>
>
> From Michael SBCERA: 
> Autorotation is changing in iOS 6. In iOS 6, the shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientations and shouldAutorotate methods. Read more at http://9to5mac.com/2012/06/25/apple-pushes-ios-6-0-update-to-devs/#tumhkqaj5kDKYOC3.99 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-1182) iOS 6 - Autorotation changes

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-1182.
----------------------------------

    Resolution: Fixed

Fix commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/d8575d7e
                
> iOS 6 - Autorotation changes
> ----------------------------
>
>                 Key: CB-1182
>                 URL: https://issues.apache.org/jira/browse/CB-1182
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Shazron Abdullah
>            Assignee: Michal Mocny
>              Labels: ios6
>             Fix For: 2.1.0
>
>
> From Michael SBCERA: 
> Autorotation is changing in iOS 6. In iOS 6, the shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientations and shouldAutorotate methods. Read more at http://9to5mac.com/2012/06/25/apple-pushes-ios-6-0-update-to-devs/#tumhkqaj5kDKYOC3.99 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (CB-1182) iOS 6 - Autorotation changes

Posted by "Avidan Chen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430297#comment-13430297 ] 

Avidan Chen edited comment on CB-1182 at 8/7/12 11:55 AM:
----------------------------------------------------------

This is a major bug for us. 

We have only one screen where the application should change rotation, and after implementing the method shouldRotateToOrientation in JavaScript it works great in iOS <= 5.1. I'm returning true in this method only when the user is viewing a specific page in my app.

However, when tested in iOS 6 DP3 & DP4, this method does not get called at all and the app is stuck in the initial orientation it started in (which in my case is the portrait orientation, as I've indicated in the .plist file of my app).

Fixing this for iOS 6 will be greatly appreciated. 

Obviously, the fix should not change the way it works in iOS 5.1 and below.
                
      was (Author: avidanchen):
    This is a major bug for us. 

We have only one screen where the application should change rotation, and after implementing the method shouldRotateToOrientation in JavaScript it works great in iOS <= 5.1. I'm returning true in this method only when the user is viewing a specific page in my app.

However, when tested in iOS 6 DP3 & DP4, this method does not get called at all and the app is stuck in the initial orientation it started in (which in my case is the portrait orientation, as I've indicated in the .plist file of my app).

Fixing this for iOS 6 will be greatly appreciated. 
                  
> iOS 6 - Autorotation changes
> ----------------------------
>
>                 Key: CB-1182
>                 URL: https://issues.apache.org/jira/browse/CB-1182
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>              Labels: ios6
>             Fix For: 2.1.0
>
>
> From Michael SBCERA: 
> Autorotation is changing in iOS 6. In iOS 6, the shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientations and shouldAutorotate methods. Read more at http://9to5mac.com/2012/06/25/apple-pushes-ios-6-0-update-to-devs/#tumhkqaj5kDKYOC3.99 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-1182) iOS 6 - Autorotation changes

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-1182:
---------------------------------

    Summary: iOS 6 - Autorotation changes  (was: Autorotation is changing in iOS 6)
    
> iOS 6 - Autorotation changes
> ----------------------------
>
>                 Key: CB-1182
>                 URL: https://issues.apache.org/jira/browse/CB-1182
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>              Labels: ios6
>             Fix For: 2.1.0
>
>
> From Michael SBCERA: 
> Autorotation is changing in iOS 6. In iOS 6, the shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientations and shouldAutorotate methods. Read more at http://9to5mac.com/2012/06/25/apple-pushes-ios-6-0-update-to-devs/#tumhkqaj5kDKYOC3.99 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1182) iOS 6 - Autorotation changes

Posted by "Michal Mocny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444125#comment-13444125 ] 

Michal Mocny commented on CB-1182:
----------------------------------

Fix here: https://github.com/apache/incubator-cordova-ios/pull/45

(copying comments from the pull request here):

* The IsIPad macro came from an earlier revision of this patch that needed to use it. Its not used any more so can be removed, but I thought it was worth leaving in.
* I understand that changes to the AppDelegate template are best avoided, but there is no way around it for this fix. Some of the changes could be avoided by not removing the ViewController::supportedOrientations array, but if we are making changes anyway, I think its best to clean this up right.
* I didn't make changes to the CordovaTests project's AppDelegate. That app delegate has diverged from the original template already -- so, what is the correct process here? (Did I miss any other changes needed when touching AppDelegate? Any other process?)
* The JS calls we make are not efficient (we make 4-8 js evaluations per rotation). There is also a w3c proposal for screen orientation (http://www.w3.org/TR/screen-orientation/#widl-Screen-onorientationchange) though it is not perfect. I plan to reach out to the mozilla dev who submitted that to raise some missing functionality with the proposal, but perhaps I'll post to ML to discuss what a good spec would have.
                
> iOS 6 - Autorotation changes
> ----------------------------
>
>                 Key: CB-1182
>                 URL: https://issues.apache.org/jira/browse/CB-1182
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Shazron Abdullah
>            Assignee: Michal Mocny
>              Labels: ios6
>             Fix For: 2.1.0
>
>
> From Michael SBCERA: 
> Autorotation is changing in iOS 6. In iOS 6, the shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientations and shouldAutorotate methods. Read more at http://9to5mac.com/2012/06/25/apple-pushes-ios-6-0-update-to-devs/#tumhkqaj5kDKYOC3.99 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (CB-1182) iOS 6 - Autorotation changes

Posted by "Klaus Schmidt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455811#comment-13455811 ] 

Klaus Schmidt edited comment on CB-1182 at 9/15/12 1:43 AM:
------------------------------------------------------------

Hi,

in iOS I've got the problem that, if I run my app with the current state of Cordova 2.1.0, the application window of my app like fullscreen-mode, so on the top of the app, the pixels of the height of the iOS status bar are not existent. It's ok, when I add "[application setStatusBarHidden:YES animated:NO];" in the "didFinishLaunchingWithOptions" in the AppDelegate.m, because then the status bar is hidden and the page is displayed in fullscreen-mode. But we want to have the status bar present. In version 2.0.0 everything is ok.
The meta-tag in index.html is this:
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-densitydpi=device-dpi" />
What can we do? We need the version 2.1.0 because of the issue CB-1219 .

Greetings, Klaus.

Edit: I've created a new Issue CB-1466 because this issue here is probably the wrong context.
                
      was (Author: disy):
    Hi,

in iOS I've got the problem that, if I run my app with the current state of Cordova 2.1.0, the application window of my app like fullscreen-mode, so on the top of the app, the pixels of the height of the iOS status bar are not existent. It's ok, when I add "[application setStatusBarHidden:YES animated:NO];" in the "didFinishLaunchingWithOptions" in the AppDelegate.m, because then the status bar is hidden and the page is displayed in fullscreen-mode. But we want to have the status bar present. In version 2.0.0 everything is ok.
The meta-tag in index.html is this:
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-densitydpi=device-dpi" />
What can we do? We need the version 2.1.0 because of the issue CB-1219 .

Greetings, Klaus.
                  
> iOS 6 - Autorotation changes
> ----------------------------
>
>                 Key: CB-1182
>                 URL: https://issues.apache.org/jira/browse/CB-1182
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Shazron Abdullah
>            Assignee: Michal Mocny
>              Labels: ios6
>             Fix For: 2.1.0
>
>
> From Michael SBCERA: 
> Autorotation is changing in iOS 6. In iOS 6, the shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientations and shouldAutorotate methods. Read more at http://9to5mac.com/2012/06/25/apple-pushes-ios-6-0-update-to-devs/#tumhkqaj5kDKYOC3.99 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1182) iOS 6 - Autorotation changes

Posted by "Klaus Schmidt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455811#comment-13455811 ] 

Klaus Schmidt commented on CB-1182:
-----------------------------------

Hi,

in iOS I've got the problem that, if I run my app with the current state of Cordova 2.1.0, the application window of my app like fullscreen-mode, so on the top of the app, the pixels of the height of the iOS status bar are not existent. It's ok, when I add "[application setStatusBarHidden:YES animated:NO];" in the "didFinishLaunchingWithOptions" in the AppDelegate.m. But we want to have the status bar present. In version 2.0.0 everything is ok.
What can we do? We need the version 2.1.0 because of the issue CB-1219 .

Greetings, Klaus.
                
> iOS 6 - Autorotation changes
> ----------------------------
>
>                 Key: CB-1182
>                 URL: https://issues.apache.org/jira/browse/CB-1182
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Shazron Abdullah
>            Assignee: Michal Mocny
>              Labels: ios6
>             Fix For: 2.1.0
>
>
> From Michael SBCERA: 
> Autorotation is changing in iOS 6. In iOS 6, the shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientations and shouldAutorotate methods. Read more at http://9to5mac.com/2012/06/25/apple-pushes-ios-6-0-update-to-devs/#tumhkqaj5kDKYOC3.99 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira