title: Getting Not Supported Error while using Ionic3
body: <p>I strangle to be able to catch this error.
  While on desktop, this code raise this  <code>NotSupportedError</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/3m6Rn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3m6Rn.png" alt="enter image description here"></a></p>
  
  <p>I normally debug on chrome.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>import {Component} from "@angular/core";
  import {ScreenOrientation} from "@ionic-native/screen-orientation";
  
  @IonicPage()
  @Component({
    selector: 'page-loading',
    templateUrl: 'page-loading.html',
  })
  export class PageLoading {
  
    constructor(private screenOrientation:ScreenOrientation) {}
  
    ionViewDidLoad() {
      console.log('ionViewDidLoad PageLoading');
  
      try{
          this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.PORTRAIT).then(()=&gt;{
            console.log('lock');
          });
      }catch(e){
        console.warn('No cordova.js')
      }
  
    }
  
  }
  </code></pre>