title: Cannot read property 'subscribe' of undefined on Ionic 4 , Angular 8
body: <p>I'm using <code>Ionic 4</code> and <code>Angular 8</code> for my project.
  My project needs to integrate with a payment gateway service.
  I'm using <a href="https://ionicframework.com/docs/native/in-app-browser" rel="nofollow noreferrer">Ionic 4 InAppBrowser plugin</a> to open payment gateway site.</p>
  
  <p>This is my implementation:</p>
  
  <pre><code>const browserRef = this.browser.create(paymentUrl, '_blank');
  this._hookBrowserClosedSubscription = browserRef.on('loadstop').subscribe(event =&gt; {
    console.log(event);
  });
  </code></pre>
  
  <p>I use command <code>ionic cordova run android --device --livereload --no-native-run</code> to run my app on a real device. I got the following error when I tried opening a page using InAppBrowser plugin:</p>
  
  <p><strong>Cannot read property 'subscribe' of undefined</strong></p>
  
  <p>I have been searching for this error, mostly they mention about its existence on <strong>browser</strong>, not <strong>real devices</strong>.</p>
  
  <p>The packages I'm using:</p>
  
  <pre><code>"cordova-plugin-inappbrowser": "^3.0.0"
  "@ionic-native/in-app-browser": "^5.8.0",
  </code></pre>
  
  <p>Can anyone help me please ?</p>
  
  <p>Thank </p>