Google Maps URL Scheme

Hi all,

Is there a bug with system.openURL(“comgooglemaps://”) ?  It always returns false on my device (android) and i really don’t know why (maps is installed…) Anyone has an idea ? Thank you. 

I’m not 100% sure Android uses URL Scheme’s like that.  Let me find out for sure.

The URL scheme is different on Android.  You are supposed to use the “geo:” scheme as documented by Google here…

http://developer.android.com/guide/appendix/g-app-intents.html

But that said, not all Android devices have the Google Maps app, such as the Kindle Fire.  In this case, I recommend that you use an “http://maps.google.com/…” scheme as shown by our sample app “Hardware/GPS” that is included with the Corona SDK.  In this case, the Android device will give you a choice of displaying the map in the default web browser app or the default map app.

Thank you Joshua  :slight_smile:

I’m not 100% sure Android uses URL Scheme’s like that.  Let me find out for sure.

The URL scheme is different on Android.  You are supposed to use the “geo:” scheme as documented by Google here…

http://developer.android.com/guide/appendix/g-app-intents.html

But that said, not all Android devices have the Google Maps app, such as the Kindle Fire.  In this case, I recommend that you use an “http://maps.google.com/…” scheme as shown by our sample app “Hardware/GPS” that is included with the Corona SDK.  In this case, the Android device will give you a choice of displaying the map in the default web browser app or the default map app.

Thank you Joshua  :slight_smile: