Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70755

InappBrowser open new tab with option _blank - Platform Browser

$
0
0

@Jeffersonveloso wrote:

Problem
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.

Information
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,

Version information
What are relevant versions you are using?
Ionic:

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:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0, browser 6.0.0
Cordova Plugins : cordova-plugin-ionic-webview 4.1.2, (and 10 other plugins)

Utility:

cordova-res : 0.8.0
native-run : 0.2.8 (update available: 0.2.9)

System:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70755

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>