Open externally link in app ios


#1

Install InAppBrowser in my app and I use the following way to open links, but open within the app and not the default browser, that will be?

<a href="#" onClick="window.open('https://facebook.com/entelSA','_black','location=yes');return false;"><i class="icon ion-social-facebook"></i></a>

or

<a href="#" onClick="window.open('https://facebook.com/entelSA','_system','location=yes');return false;"><i class="icon ion-social-facebook"></i></a>

#2

try putting in " _blank " instead of " _black ", minor typo :wink:


#3

I can not believe that was my mistake … thank you very much for correcting me hahaha


#4

Well, I’ve certainly had more obvious mistakes in my programming life :stuck_out_tongue:


#5

just apply the change and I still does not work, you think if I do a rm plattform and add it again has to do? because in the browser works fine but if I or ios or android open in a new window.


#6

i’ve had this same issue previously, and I solved it by doing

<a href="#" ng-click="openFB();"><i class="icon ion-social-facebook"></i></a>

Controllers.js:

$scope.openFB = function(){
   window.open('https://facebook.com/entelSA','_black','location=yes');
}

Putting the code in a function inside the controller has worked for me when direct linking hasn’t worked


#7

I did, but still not working, it can not be that is causing this


#8

You could try platform remove and add, but I’m not sure… I’m out of ideas :wink:


#9

I’ve done it a few times but still not working. I do not understand it can be …