- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My game worked well with Android exported. Then I exported it to iOS, everythings is good except Orientation . I tried to change the Build option and added all Plugins to my project but It didnt work. I also put the code "intel.xdk.device.setRotateOrientation("landscape");"
to everywhere of my source file without working. Im making game by Contruct 2 software. Every else exporters dont work well with my game. I can use only XDK. I tested my game on iPhone 5 OS 8. Please help me to fix this issue. Thank you.
- Tags:
- HTML5
- Intel® XDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Beginning with CLI 5, another solution is to use the following preference in your intelxdk.config.additions.xml file:
<platform name="ios"> <!-- so iPhone and iPad rotate freely (CLI 5.1.1 and above) --> <!-- values include "default", "landscape" and "portrait" --> <!-- "default" means "portrait" for iPhone and "free" for iPad --> <preference name="Orientation" value="all" /> </platform>
See https://cordova.apache.org/docs/en/5.1.1/config_ref/index.html for more information.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi... :)
I wonder if my ios orientation symptom is the same: though I specify landscape via Intel Xdk [such as 1) 'build settings: orientation' and 2) 'launch icons and splash screens: orientation], I still get portrait on my ios device.
Will your kind lead to 'Intel XDK Orientation Sample' resolve my situation? If so, can there be more explaination, since I'm a noob to patching code? ;) (Interestingly enough, phonegap-build does honor my landscape choice.)
Thx in advance. :) Jason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a known issue regarding iOS orientation and Cordova. An interim fix is available, see this forum thread: https://forums.html5dev-software.intel.com/viewtopic.php?f=29&t=7830#p31421
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Paul Fischer (Intel) wrote:
There is a known issue regarding iOS orientation and Cordova. An interim fix is available, see this forum thread: https://forums.html5dev-software.intel.com/viewtopic.php?f=29&t=7830#p31421
Thanks Paul for the helpful link.
Since my goal is to have 'landscape', should I use everything in their solution, except replace their solution of ' 'UIInterfaceOrientationPortrait' with 'UIInterfaceOrientationLandscapeRight'?
Special Regards... :) Jason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You'll have to look up the names on the Apple developer site, I don't know what they are, off-hand. Also, the plugin referenced in this thread might help: https://forums.html5dev-software.intel.com/viewtopic.php?f=34&t=8974
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Beginning with CLI 5, another solution is to use the following preference in your intelxdk.config.additions.xml file:
<platform name="ios"> <!-- so iPhone and iPad rotate freely (CLI 5.1.1 and above) --> <!-- values include "default", "landscape" and "portrait" --> <!-- "default" means "portrait" for iPhone and "free" for iPad --> <preference name="Orientation" value="all" /> </platform>
See https://cordova.apache.org/docs/en/5.1.1/config_ref/index.html for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Do someone know if this problem has been solved ? And what to do ?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is solved. I'm using the lastest version of XDK, and never meet this problem again ^ ^
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page