Titanium未在iOS中启动Google Maps应用

时间:2015-04-20 09:41:32

标签: ios google-maps titanium-mobile appcelerator-mobile

根据我的能力,Google Titanium应该在运行以下代码时启动Google Maps应用程序(如果已安装),而不是浏览器:

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

不幸的是,对于我和其他人测试我的应用程序,它只会启动浏览器,即使安装了Google地图应用程序。

如果安装了谷歌地图应用程序,有没有办法强行打开它?

1 个答案:

答案 0 :(得分:1)

而不是使用UrlScheme,例如

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