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!