When I try to open a url in my app on the browser platform using the blank option, it was supposed to open inside the inappbrowser iframe as it is in my app in the ionic 3 version but ionic 4 is opening in a new tab outside my application. The plugin keeps returning to the console that it is not installed or running in an environment using window.open. The network plugin is also returning to check using this.network.type on the browser platform null.
What is expected to happen?
Open in iframe inside my application.
What does actually happen?
Open in new tab.
To reproduce the problem just install the plugin in an ionic app in version 4 and execute the code as you indicate by inserting the link and using the ‘_blank’ option.
Command or Code
const iab = this.iab.create(link,’_blank’);
Environment, Platform, Device
Desktop or Mobile, Browser,
What are relevant versions you are using?
Ionic CLI : 5.4.4 (C:\Users\Pichau\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.10.0
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.0.0
Cordova CLI : 9.0.0 (email@example.com)
Cordova Platforms : android 8.1.0, browser 6.0.0
Cordova Plugins : cordova-plugin-ionic-webview 4.1.2, (and 10 other plugins)
cordova-res : 0.8.0
native-run : 0.2.8 (update available: 0.2.9)
Android SDK Tools : 26.1.1 (C:\Users\Pichau\AppData\Local\Android\Sdk)
NodeJS : v10.15.3 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10