Amanda
Posts: 0
Joined: Fri Jan 17, 2014 5:33 am

How to open native Maps app?

I'd like an address in my app to cause a native map app to open -- either Google Maps or Apple Maps on IOS - I really don't care which.

I tried setting the link URL to geo:lat,long, but then it opened in Google Earth. I set it to http://maps.apple.com/?q=location, but then it opened in a web browser window that I couldn't close, and the weird thing is that it opened maps.google.com even though I was linking to maps.apple.com.

In mobile Safari, when I type https://maps.apple.com/?q=location, with https, that opens in Apple Maps. But in my app when I set that as the URL, it wouldn't open at all an it reported a certificate error.

So, simple question but lots of complicated stuff going on!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to open native Maps app?

Hello!

[quote:]it opened in a web browser window that I couldn't close[/quote]try to open in InAppBrowser http://cordova.apache.org/docs/en/3.3...
[quote:]with https, that opens in Apple Maps[/quote]try with http instead https

Amanda
Posts: 0
Joined: Fri Jan 17, 2014 5:33 am

How to open native Maps app?

Thanks. Instead of a link, I made it a button and made the click call this Javascript. It doesn't open the native maps app, which is what I originally wanted, but it does open in a browser window that I can live with:

window.open('https://maps.google.com/?q=location',...');

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

How to open native Maps app?

Hi,

Apparently, this link will be helpful for you:
http://community.phonegap.com/nitobi/...

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

How to open native Maps app?

Hi Maryna & Nikita
Is it possible to add something like this to my app (android and iOs)?
I just want to add an address or a google map element and if the user clicks on the map or address, have this menu to complete action for directions?

iOs

Image

android

Image

Regards

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to open native Maps app?

Hello!

You can build route in app http://docs.appery.io/tutorials/build...
http://docs.appery.io/tutorials/using...
If you want to open it in installed app, you would need to search for PhoneGap plugin.

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

How to open native Maps app?

Hi Marina,

Do you know that plugin is?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to open native Maps app?

Sorry, not familiar with that plugin, you would need to search it online.

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

How to open native Maps app?

ok! thanks!!!

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

How to open native Maps app?

thanks maryna , I already have route in app. I really would like to have this plugin in my app.
Laura, if I find the pluging I'll post here..

Return to “Issues”