[
https://issues.apache.org/jira/browse/CB-11614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ronny Schleicher updated CB-11614:
----------------------------------
Description:
h3. Steps to reproduce
h4. 1. Create a new fresh cordova app on your iMAC
{code}
cordova create PhoneGap_ios de.test.test Test
cd PhoneGap_ios
cordova platform add ios --save
cordova plugin add cordova-plugin-device-motion
cordova plugin add cordova-plugin-device-orientation
cordova plugin add cordova-plugin-network-information
cordova plugin add cordova-plugin-device
cordova plugin add cordova-plugin-splashscreen
cordova plugin add cordova-plugin-console
cordova plugin add cordova-plugin-statusbar
cordova plugin ls
{code}
h4. 2. Open the x-code project an enable in the project all orientations
Targets -> Test -> General -> Deployment Info -> Device Orientation -> check
all orientations
h4. 3. Set a breakpoint in follow method
{code:title=MainViewController.m|borderStyle=solid}
-
(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}
{code}
h4. 5. Now connect your iPhone and run the Test App
If the device is rotated, never the method is called.
Is this correct? I believe this is an error.
The method should be invoked in any change of orientation.
h5. Notes and a Workaround
In an earlier version of Cordova (3.9.2???) the *shouldAutorotate* method was
used at this point. This old method I have installed in my app as workaround
again.
was:
(just in progress)
h3. Step to reproduce
h4. 1. create a new fresh cordova app on your iMAC
{code}
cordova create PhoneGap_ios de.test.test Test
cd PhoneGap_ios
cordova platform add ios --save
cordova plugin add cordova-plugin-device-motion
cordova plugin add cordova-plugin-device-orientation
cordova plugin add cordova-plugin-network-information
cordova plugin add cordova-plugin-device
cordova plugin add cordova-plugin-splashscreen
cordova plugin add cordova-plugin-console
cordova plugin add cordova-plugin-statusbar
cordova plugin ls
{code}
h4. 2. open the x-code project an enable in the project all orientations
Targets -> Test -> General -> Deployment Info -> Device Orientation -> check
all orientations
h4. 3. set a breakpoint in follow method
{code:title=MainViewController.m|borderStyle=solid}
-
(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}
{code}
h4. 5. now connect your iPhone and run the Test App
If the device is rotated, never the method is called.
Is this correct? I believe this is an error.
The method should be invoked in any change of orientation.
h4. Notes and a Workaround
In an earlier version of Cordova (3.9.2???) the *shouldAutorotate* method was
used at this point. This old method I have installed in my app as workaround
again.
Summary: On iOS the Objectiv-C method
'shouldAutorotateToInterfaceOrientation' is never called during/after a device
orientation (was: On iOS the Objectiv-C method
'shouldAutorotateToInterfaceOrientation' is never called during/after a device
rotation)
> On iOS the Objectiv-C method 'shouldAutorotateToInterfaceOrientation' is
> never called during/after a device orientation
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: CB-11614
> URL: https://issues.apache.org/jira/browse/CB-11614
> Project: Apache Cordova
> Issue Type: Bug
> Affects Versions: 4.2.0
> Environment: * iMAC with OS X El Capitan Version 10.11.5
> * X-Code Version 7.3 (7D175)
> * iPhone 4S with iOS 9.3.3
> * Latest Version of Cordova 4.2.0
> Reporter: Ronny Schleicher
> Priority: Critical
>
> h3. Steps to reproduce
> h4. 1. Create a new fresh cordova app on your iMAC
> {code}
> cordova create PhoneGap_ios de.test.test Test
> cd PhoneGap_ios
> cordova platform add ios --save
> cordova plugin add cordova-plugin-device-motion
> cordova plugin add cordova-plugin-device-orientation
> cordova plugin add cordova-plugin-network-information
> cordova plugin add cordova-plugin-device
> cordova plugin add cordova-plugin-splashscreen
> cordova plugin add cordova-plugin-console
> cordova plugin add cordova-plugin-statusbar
> cordova plugin ls
> {code}
> h4. 2. Open the x-code project an enable in the project all orientations
> Targets -> Test -> General -> Deployment Info -> Device Orientation -> check
> all orientations
> h4. 3. Set a breakpoint in follow method
> {code:title=MainViewController.m|borderStyle=solid}
> -
> (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
> {
> // Return YES for supported orientations
> return [super
> shouldAutorotateToInterfaceOrientation:interfaceOrientation];
> }
> {code}
> h4. 5. Now connect your iPhone and run the Test App
> If the device is rotated, never the method is called.
> Is this correct? I believe this is an error.
> The method should be invoked in any change of orientation.
> h5. Notes and a Workaround
> In an earlier version of Cordova (3.9.2???) the *shouldAutorotate* method was
> used at this point. This old method I have installed in my app as workaround
> again.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]