2

I have a small problem. I use comgooglemaps scheme to call google maps and perform a search. This works ok but problem is if user don't have a google maps installed.

Now... how can i check this and if google maps are not installed to call google via browser? ... or to call some other maps app that user uses?

Thanx!

xomena
  • 31,125
  • 6
  • 88
  • 117
vixus
  • 57
  • 6

1 Answers1

1

You can use Google Maps URLs that provides universal cross-platform URL to launch Google Maps. Currently this is recommended and supported way to open Google Maps app.

According to the documentation

On an iOS device:

  • If Google Maps app for iOS is installed, the URL launches Google Maps in the Maps app and performs the requested action.

  • If the Google Maps app is not installed, the URL launches Google Maps in a browser and performs the requested action.

This behavior is pretty much what you were asking about, so replace comgooglemaps scheme with Google Maps URL (e.g. https://www.google.com/maps/search/?api=1&parameters) and you are settled.

I hope this helps!

Community
  • 1
  • 1
xomena
  • 31,125
  • 6
  • 88
  • 117