I need to open google/apple map app on iOS using Meteor js. I could do it in Andriod using window.open("geo:" + addressLongLat, "_system");
, but the same code not working iOS.
On iOS geo: url scheme doesn't open Google maps, it can open Google Earth
Google maps app allows this three url schemes, comgooglemaps://
, comgooglemaps-x-callback://
and comgooglemapsurl://
More information about google maps url schemes
You can also use the http url, that will open the app if it's installed or a website if it isn't
More information about http urls
Also, for making window.open
work you'll have to install cordova-plugin-inappbrowser
first. Otherwise, you'll have to use a
links.
Also for Apple map you can use
window.open('maps://?q=' + addressLongLat, '_system');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With