apache / cordova-plugin-inappbrowser

Apache Cordova InAppBrowser Plugin
https://cordova.apache.org/
Apache License 2.0
1.12k stars 2.15k forks source link

Opening with the _self target not working #739

Open benvallack opened 4 years ago

benvallack commented 4 years ago

Bug Report

When using _self - nothing appears with no errors reported. If I change it to _blank it shows up but leaving a large gap at the top and the whole thing can be swiped down to close it. I'd like to be able to just open it fullscreen without any ability to close it by pulling down.

What is expected to happen?

_self should let the browser replace the current ionic webview if I'm not mistaken.

What does actually happen?

Nothing at all.

Information

Command or Code

Environment, Platform, Device

All current versions of Ionic and plugins from a fresh install last week. Using Angular and Capacitor.

Version information

Ionic:

Ionic CLI : 6.10.1 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 5.2.1 @angular-devkit/build-angular : 0.901.8 @angular-devkit/schematics : 9.1.8 @angular/cli : 9.1.8 @ionic/angular-toolkit : 2.2.0

Capacitor:

Capacitor CLI : 2.2.0 @capacitor/core : 2.2.0

Utility:

cordova-res : not installed native-run (update available: 1.0.0) : 0.2.9

System:

NodeJS : v12.18.0 (/Users/benvallack/.nvm/versions/node/v12.18.0/bin/node) npm : 6.14.4 OS : macOS Catalina

Checklist

benvallack commented 4 years ago

Ah - sorry the issue with the _blank option enabled was the presentationstyle option being set to 'pagesheet' - removing that fixed that. Although _self still doesn't do anything.

ghost commented 4 years ago

I am having the same issue with Capacitor. I have also a fresh install of Capacitor and version 4.0.0 of this plugin. Target _blank is working but target _self is not working in iOS without any error being displayed. On Android however target _self is working.

jcruzrg commented 4 years ago

Same problem in iOS when use target='_self', not open inappbrowser Ionic: Ionic CLI : 6.12.0 Ionic Framework : @ionic/angular 5.3.3 @angular-devkit/build-angular : 0.1000.8 @angular-devkit/schematics : 10.0.8 @angular/cli : 10.0.8 @ionic/angular-toolkit : 2.3.3

Capacitor:

Capacitor CLI : 2.4.1 @capacitor/core : 2.4.1

Utility:

cordova-res : 0.15.1 native-run (update available: 1.2.2) : 1.0.0

System:

NodeJS : v12.16.3 npm : 6.14.8 OS : macOS Catalina

jcruzrg commented 4 years ago

I am having the same issue with Capacitor. I have also a fresh install of Capacitor and version 4.0.0 of this plugin. Target _blank is working but target _self is not working in iOS without any error being displayed. On Android however target _self is working.

The same thing happens to me, did you find a solution?

heinrichcoetzee commented 2 years ago

Have the same problem on ios

kendyl93 commented 2 years ago

Have the same problem with Capacitor 4