Software Archive
Read-only legacy content
17060 Discussions

IOS8 autorotate problem

Sonya_C_
Beginner
766 Views

Hello,

I built an application with Intel XDK, works very well!!

Only thing is with the new ios8 there seems to be an issue with the Autorotate on IPad (stuck in portrait mode). Everything works well on ios7.

I am using app framework ui and have the following lines in my index file

AppMobi.device.setRotateOrientation("any");
AppMobi.device.setAutoRotate(true);

Thank you,
Sonya

0 Kudos
3 Replies
Elroy_A_Intel
Employee
766 Views

I recommend that you use the intel.xdk namespace in place of the AppMobi namespace if you want to continue using it. Currently, we are deprecating some of our intel.xdk APIs. For more information, go to https://software.intel.com/en-us/html5/articles/intel-xdk-api-cordova-plugin-methods-properties-events.

Are you building your application with the build options under Cordova 3.X or Legacy? If you chose to use the Cordova 3.X build options, you can set your project's orientation under the Projects panel to Default, Landscape or Portrait.

0 Kudos
Sonya_C_
Beginner
766 Views

I also tried

intel.xdk.device.setAutoRotate(true);
intel.xdk.device.setRotateOrientation("any");

with no luck. I am not using the Cordova build option it does not work. I am using legacy buid.

 

0 Kudos
PaulF_IntelCorp
Employee
766 Views

See this thread (https://forums.html5dev-software.intel.com/viewtopic.php?f=29&t=7830), it might provide some insight.

0 Kudos
Reply