Hello there,
I want to open the external maps app, when the user clicks on a link.
I found a lot of solutions on the internet, but nothing seems to work. On android everything works like a charm.
Thats how it is at the moment:
openMap(offer){
if (this.platform.is('ios')) {
window.open('maps://?q=' + offer.position.lat + ',' + offer.position.lng, '_system');
}
if (this.platform.is('android')) {
window.open('geo://' + offer.position.lat + ',' + offer.position.lng + '?q=' + offer.position.lat + ',' + offer.position.lng + '(' + offer.ag_name + ')', '_system');
}
}
On the console of xCode i dont see any errors or something. It just doesnt work.
I also added
<allow-intent href="maps:*" />
within the config.xml, but it doesnt change anything.
If anyone has a hint for me, that would be great.
thanks
Skee