cordova-plugin-inappbrowser icon indicating copy to clipboard operation
cordova-plugin-inappbrowser copied to clipboard

Opening with the _self target not working

Open benvallack opened this issue 5 years ago • 6 comments
trafficstars

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

  • [x ] I searched for existing GitHub issues
  • [ x] I updated all Cordova tooling to most recent version
  • [x ] I included all the necessary information above

benvallack avatar Jun 22 '20 13:06 benvallack

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.

benvallack avatar Jun 22 '20 14:06 benvallack

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.

ghost avatar Aug 19 '20 08:08 ghost

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 avatar Oct 24 '20 04:10 jcruzrg

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?

jcruzrg avatar Oct 24 '20 04:10 jcruzrg

Have the same problem on ios

heinrichcoetzee avatar Jul 26 '22 23:07 heinrichcoetzee

Have the same problem with Capacitor 4

kendyl93 avatar Nov 03 '22 11:11 kendyl93