Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Google map external link with Cordova inappbrowser

$
0
0

@soulmecca wrote:

Hi, I'm trying to open external links in google map with Cordova inappbrowser.

I've tried with this jQuery way.
$(document).on("click", "a[href^=http], a[href^=https]", function(e) {
e.preventDefault();
var $this = $(this);
var target = $this.data("inAppBrowser") || "_blank";
window.open($this.attr("href"), target, "location=no");
});

However, I found that it cannot deal with every case.
It works when I click Google trade mark but not works with the link 'View on Google maps'.

Has anyone gone through this problem?

Thanks in advance.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>