title: Ionic/cordova Screen orientation not working
body: <p>I've been developing an ionic app and it requires all but one screen to be locked in portrait mode. So I added the screen orienation plugin via </p>
  
  <pre><code>cordova plugin add cordova-plugin-screen-orientation
  </code></pre>
  
  <p>Then I added the supposedly simple line of code </p>
  
  <p><code>window.screen.lockOrientation('portrait');</code> //does not work</p>
  
  <p>tried this aswell
  <code>screen.lockOrientation('portrait');</code> //does not work</p>
  
  <pre><code>$ionicPlatform.ready(function() {
      screen.lockOrientation('landscape');
  });
  </code></pre>
  
  <p>with <strong>$ionicPlatform dependency</strong> included //does not work</p>
  
  <p>Seems pretty straight forward but nothing is working</p>
  
  <p>Any help would be greatly appreciated..Thanks :)</p>