Open different browser with innapbrowser

0

know if there is a way to open in another browser that redirects the url I put in the app ?, I use the plugin cordova-plugin-inappbrowser , in android if you open the browser that has default, for example chrome , but in iOS I directly open the app. This is the code that I use, with OpenUrlExt it works but it directs me to the first sight they know if there is a way to avoid that it changes of sight ?. thank you very much.

<div class="contactoInfoR" onclick="window.open('https://www.facebook.com/', '_system', 'location=yes'); return false;" ng-if="android">
    <span class="icon-facebook"></span>
</div>
<div class="contactoInfoR" ng-click="abrirNavegador()" ng-if="ios">
    <span class="icon-facebook"></span>
</div>

app.js

function controlcontacto ($scope, $window, $http, $ionicPopup, $ionicLoading, urlRoot, $rootScope) {
  $rootScope.tituloGeneral = 'Contacto';
  var movil = moviles();

  if (movil == 'iOS') {
   $scope.ios = true;
   $scope.android = false;
  }
  else if (movil == 'Android') {
    $scope.ios = false;
    $scope.android = true;
  }
  else{
   $scope.ios = false;
   $scope.android = true;
  }

  $scope.abrirNavegador = function () {
    OpenUrlExt.open('https://www.facebook.com/', function (succes) {
      console.log(success);
    }, function (err) {
      console.log(err);
    });
  }
}
    
asked by Albert Arias 11.01.2017 в 22:30
source

0 answers