Search code examples
iosgoogle-mapstitanium-mobileappcelerator-mobile

Titanium not launching Google Maps app in iOS


According to what I have been able to Google Titanium should launch the Google Maps app if it is installed, rather than the broweser, when the following code is run:

Ti.Platform.openURL("http://maps.google.com/?saddr=51.24977493286133,-2.846895456314087&daddr=51.511971,-0.144470");

Unfortunately for me and others testing my app it only launches the browser even though Google Maps App is installed.

Is there a way to force opening of the Google Maps app if it is installed?


Solution

  • Instead of url use UrlScheme,for example like

    Ti.Platform.openURL("comgooglemaps://?center=37.788463,-122.392545");