iOS - window.open(url, '_system'; 'location=no') don't work


#1

hello,

i want to open an external link with the cordova inappbrowser, but it don’t work
i have installed cordova-plugin-inappbrowser and using ionic 2 RC1
On my android device there is no problem with the same code…

my code looks like: html
< a (click)=“openInExternalBrowser(item?.website)” class=“ext__link” *ngIf=“item?.website”>

go to page

my typescript

 openInExternalBrowser(url) : void {
    window.open(url,'_system','location=no');
    console.log(url);
  }

the console.log() works, and the url is also correct


#2

you may want to try encodeURI(url)?


#3

thanks, but the URI is not the problem, i get the correct URL the problem is, if i click on the link - nothing happens!


#4

Hi! did you solve this?
Thanks!


#5

I have the same problem, how did you solve it?


#6

In my case it worked for some time, and it stopped working. In a new environment, I added cordova-plugin-inappbrowser plugin again and it started working again.
command:
ionic cordova plugin add cordova-plugin-inappbrowser


#7

I have the same problem