Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can open google map in iOS using Meteor

Tags:

meteor

cordova

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.

like image 924
Shemeer M Ali Avatar asked May 19 '17 14:05

Shemeer M Ali


Video Answer


1 Answers

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');
like image 53
jcesarmobile Avatar answered Oct 11 '22 06:10

jcesarmobile