InAppBrowser keeps opening links in android's external browser?


#1

Hi. I’m trying to use $cordovaInAppBrowser with target="_blank" to load the InAppBrowser like this:

$cordovaInAppBrowser.open('http://www.google.com', '_blank')
or
window.open('http://www.google.com', '_blank')

Regardless if I use _self, _blank or _system, when I click the link it opens in chrome, leaving the android app. Any ideas on what could be the pitfall? Are there ways to override ngCordova’s behavior elsewhere in the application that I’m not aware of?

On the other hand I can get links to open as expected with ionic and bare cordova, where

cordova.InAppBrowser.open('http://www.google.com', '_self') loads the link in the same view, _blank loads InAppBrowser, and _system opens chrome.