<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic This screen orientation in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065442#M55981</link>
    <description>&lt;P&gt;This screen orientation plugin is the solution -&amp;nbsp;https://github.com/gbenvenuti/cordova-plugin-screen-orientation&lt;/P&gt;

&lt;P&gt;Many users have had luck with it. Where exactly is it failing?&lt;/P&gt;

&lt;P&gt;If you are facing issues with iPad, create a plugin.xml as instructed in the first part of the FAQ.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Dec 2015 23:11:15 GMT</pubDate>
    <dc:creator>Anusha_M_Intel1</dc:creator>
    <dc:date>2015-12-28T23:11:15Z</dc:date>
    <item>
      <title>Screen orientation plugin is not working.</title>
      <link>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065439#M55978</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;

&lt;P&gt;I'm using Cordova Screen Orientation Plugin for an iOS app.In my app-init.js file the code blocks below supposed to do the job. But it doesn't.&lt;/P&gt;

&lt;P&gt;document.addEventListener("deviceready", onDeviceReady, false);&lt;BR /&gt;
	function onDeviceReady() {&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; intel.xdk.device.setRotateOrientation("landscape");&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; intel.xdk.device.setAutoRotate(false);&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; window.screen.lockOrientation('landscape-primary');&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Also this node is added in the config.xml file :&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;lt;preference name="Orientation" value="landscape" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;mayday.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Dec 2015 00:15:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065439#M55978</guid>
      <dc:creator>Ozgur_O_</dc:creator>
      <dc:date>2015-12-26T00:15:28Z</dc:date>
    </item>
    <item>
      <title>Please do not use those old</title>
      <link>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065440#M55979</link>
      <description>&lt;P&gt;Please do not use those old intel.xdk functions, they are not getting updated and are obsolete. Please see this FAQ &amp;gt; &lt;A href="https://software.intel.com/en-us/xdk/faqs/cordova#app-orientation" target="_blank"&gt;https://software.intel.com/en-us/xdk/faqs/cordova#app-orientation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2015 01:14:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065440#M55979</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2015-12-27T01:14:37Z</dc:date>
    </item>
    <item>
      <title>Ok. Thanks for the info.</title>
      <link>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065441#M55980</link>
      <description>&lt;P&gt;Ok. Thanks for the info.&lt;/P&gt;

&lt;P&gt;However I'm still wondering what is the solution.&lt;BR /&gt;
	&lt;BR /&gt;
	The last line in the code block is&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Cordova Screen Orientation Plugin and it's not deprecated. But it doesan't work anyway.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2015 15:32:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065441#M55980</guid>
      <dc:creator>Ozgur_O_</dc:creator>
      <dc:date>2015-12-27T15:32:47Z</dc:date>
    </item>
    <item>
      <title>This screen orientation</title>
      <link>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065442#M55981</link>
      <description>&lt;P&gt;This screen orientation plugin is the solution -&amp;nbsp;https://github.com/gbenvenuti/cordova-plugin-screen-orientation&lt;/P&gt;

&lt;P&gt;Many users have had luck with it. Where exactly is it failing?&lt;/P&gt;

&lt;P&gt;If you are facing issues with iPad, create a plugin.xml as instructed in the first part of the FAQ.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 23:11:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065442#M55981</guid>
      <dc:creator>Anusha_M_Intel1</dc:creator>
      <dc:date>2015-12-28T23:11:15Z</dc:date>
    </item>
    <item>
      <title>@Anusha Muthiah , Im also</title>
      <link>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065443#M55982</link>
      <description>&lt;P&gt;@Anusha Muthiah , Im also trying that solution can be seen in the codes. But the problem is, it's ok when opening the app but when i change the orientation it changes, doesn't prevent its state.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 08:45:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065443#M55982</guid>
      <dc:creator>Ozgur_O_</dc:creator>
      <dc:date>2015-12-29T08:45:40Z</dc:date>
    </item>
    <item>
      <title>@Ozgur, I just did an</title>
      <link>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065444#M55983</link>
      <description>&lt;P&gt;@Ozgur, I just did an experiment with an Android device and the Debug tab, which is an easy way to experiment with the API to make sure you are using it correctly:&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;add the plugin to a blank project&lt;/LI&gt;
	&lt;LI&gt;configure your Android device for USB debugging (see &lt;A href="https://software.intel.com/en-us/xdk/docs/configuring-your-windows-usb-android-debug-connection-for-the-intel-xdk)" target="_blank"&gt;https://software.intel.com/en-us/xdk/docs/configuring-your-windows-usb-android-debug-connection-for-the-intel-xdk)&lt;/A&gt;&lt;/LI&gt;
	&lt;LI&gt;attach your Android device via USB and startup the Debug tab&lt;/LI&gt;
	&lt;LI&gt;let the Debug tab build a custom debug module&lt;/LI&gt;
	&lt;LI&gt;start a debug session with the Debug tab (once you have the custom module installed)&lt;/LI&gt;
	&lt;LI&gt;go to the debug session command-line and experiment with the screen object.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;For example, I was able to experiment with:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;screen.lockOrientation("portrait-primary")
screen.lockOrientation("portrait")
...etc...
cordova.plugins.screenorientation.setOrientation("landscape-primary")
cordova.plugins.screenorientation.setOrientation("landscape-secondary")
...etc...&lt;/PRE&gt;

&lt;P&gt;The docs are not very good, but you can figure out what the APIs are by inspecting the files in the www directory in the github repo and by looking for the "clobbers" and "merges" statements inside the plugin.xml file.&lt;/P&gt;

&lt;P&gt;Here's a sample of what part of my console debugging session looked like (this plugin fits part of its API into the window.screen object and the rest into window.cordova.plugins, so I was playing with both objects):&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2016-01-04 at 6.33.26 PM.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8353iF17DA359663B6FD8/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screen Shot 2016-01-04 at 6.33.26 PM.png" alt="Screen Shot 2016-01-04 at 6.33.26 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 02:38:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065444#M55983</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-01-05T02:38:00Z</dc:date>
    </item>
    <item>
      <title>Hi Paul,</title>
      <link>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065445#M55984</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;

&lt;P&gt;Have you tried to rotate your device and did the orientation change?&lt;/P&gt;

&lt;P&gt;I'm using the plugin for an iOS App. Maybe there's a bug for the iOS version...&lt;/P&gt;

&lt;P&gt;But there's a difference between your code and mine. I used:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&lt;STRONG&gt;window.screen.lockOrientation('landscape-primary');&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;You used :&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;CODE class="plain" style="font-size: 13.008px; line-height: 14.3088px; color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background-image: none !important; background-attachment: initial !important; background-color: rgb(248, 248, 248); background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;cordova.plugins.screenorientation.setOrientation(&lt;/CODE&gt;&lt;CODE class="string" style="font-size: 13.008px; line-height: 14.3088px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; color: blue !important; background-image: none !important; background-attachment: initial !important; background-color: rgb(248, 248, 248); background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;"landscape-primary"&lt;/CODE&gt;&lt;CODE class="plain" style="font-size: 13.008px; line-height: 14.3088px; color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background-image: none !important; background-attachment: initial !important; background-color: rgb(248, 248, 248); background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;);&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE class="plain" style="font-size: 13.008px; line-height: 14.3088px; color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background-image: none !important; background-attachment: initial !important; background-color: rgb(248, 248, 248); background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;Maybe it makes a difference.&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 11:44:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065445#M55984</guid>
      <dc:creator>Ozgur_O_</dc:creator>
      <dc:date>2016-01-05T11:44:33Z</dc:date>
    </item>
    <item>
      <title>When I used the</title>
      <link>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065446#M55985</link>
      <description>&lt;P&gt;When I used the lockOrientation function my device stayed locked. The setOrientation functions do not lock the screen.&lt;/P&gt;

&lt;P&gt;There could be a bug in iOS, check the issues link in the github repo, I recall seeing some recent issues posted there, but I don't recall what they were about.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 19:42:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Screen-orientation-plugin-is-not-working/m-p/1065446#M55985</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-01-05T19:42:34Z</dc:date>
    </item>
  </channel>
</rss>

