title: Ionic cordova-plugin-screen-orientation doesn't work anymore on Ios
body: <p>I've got some trouble with the <code>screen orientation plugin</code> since I updated everything. I have already a running app where everything works fine. But since I update every plugin and the cordova and ionic environment to the latest version my screen orientation plugin doesn't work anymore. </p>
  
  <p><code>config.xml</code> configuration</p>
  
  <pre><code>&lt;preference name="Orientation" value="portrait"/&gt;
  </code></pre>
  
  <p>installed plugins</p>
  
  <pre><code>cordova-plugin-screen-orientation 1.4.0 "Screen Orientation"
  org.adlotto.cordova.recheck-screen-orientation 0.1.0 "RecheckScreenOrientation"
  </code></pre>
  
  <p>cordova version <code>6.1.1</code></p>
  
  <p>ionic version <code>1.7.14</code></p>
  
  <p>Javascript code</p>
  
  <pre><code>// to lock screen in portrait mode
  screen.lockOrientation('portrait-primary'); // it doesn't work neither with 'portrait'
  ...
  // unlock orientation
  screen.unlockOrientation();
  </code></pre>
  
  <p>screen is defined but the function calls have no effect. I don't know why it doesn't work anymore. I tried it with my Iphone 5 (ios 9.2.1) and different emulators.</p>
  
  <p>With my android device everything works as expected.</p>