Page 1 of 2

How to open native Maps app?

Posted: Fri Mar 21, 2014 6:48 pm
by Amanda

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!


How to open native Maps app?

Posted: Fri Mar 21, 2014 7:32 pm
by Maryna Brodina

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


How to open native Maps app?

Posted: Mon Mar 24, 2014 1:26 am
by Amanda

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',...');


How to open native Maps app?

Posted: Mon Mar 24, 2014 4:14 pm
by Nikita

Hi,

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


How to open native Maps app?

Posted: Wed Apr 09, 2014 6:44 am
by Alex GG

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


How to open native Maps app?

Posted: Wed Apr 09, 2014 12:11 pm
by Maryna Brodina

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.


How to open native Maps app?

Posted: Wed Apr 09, 2014 2:05 pm
by laura6372139

Hi Marina,

Do you know that plugin is?


How to open native Maps app?

Posted: Wed Apr 09, 2014 2:07 pm
by Maryna Brodina

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


How to open native Maps app?

Posted: Wed Apr 09, 2014 2:10 pm
by laura6372139

ok! thanks!!!


How to open native Maps app?

Posted: Wed Apr 09, 2014 3:09 pm
by Alex GG

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..