Why InAppBrowser in iOS phones opens Safari?

I’m using this code to open InAppBrowser to show external sites into an Ionic4 app.

          const browserRef = this.iab

          // Event raised when the browser loads a page
          browserRef.on('loadstop').subscribe(event => {

This code works well on Android, but on iOS it doesn’t work because the iPhone opens Safari into an external page ().
Is there a way to solve this problem?
Or does it exist another browser I can use in a Ionic4 app?
I can’t use iframe.

Thank you


embed the inappbrowser code in this.platform.ready.
It will start working on ios

How? Will it still work on Ionic 5 Cordova 10 InAppBrowser 5

Yes it will work . I had tried on ionic 5.2.0 to be precise but my cordova version was 9 not 10. Still give it a try