I have been trying to open external links through my ionic app. Been trying to do this using the inappbrowser plugin. I am using the following code:
<a ng-href="http://facebook.com" target="_blank" ng-click="window.open('http://google.com', '_blank', 'location=yes, toolbar=yes')">Google</a>
The link opens in the inappbrowser, but there is no back button or close button and hence no way of going back to the app. This is happening in both android and ios. I have tried changing _blank to _system and to _self, but this is not making any difference. The links still open in the inappbrowser with no back button regardless of the target and options.
I have also tried replacing window.open with cordova.InAppBrowser.open and with $cordovaInAppBrowser.open. Makes no difference.
All the dependencies have been added to the config.xml file and to the index.html file.
Is there anything I am missing?
I am using ionic v1, the inappbrowser plugin is installed and is version 1.7.1, iOS 9.