简体   繁体   English

带有iOS和Android的Phonegap地图

[英]Phonegap Maps with iOS and Android

So I have basically given up. 所以我基本上已经放弃了。 I have tried my best to search all possible ways to have a link open up map application in an app but I seem to fail. 我已尽力搜索所有可能的方法以在应用程序中打开链接以打开地图应用程序,但我似乎失败了。

Here's the situation: I want a particular link to open up in Android and iOS. 情况如下:我希望在Android和iOS中打开特定链接。 Assuming some users probably don't have Google Maps installed on their Apple devices, I was wondering there can be an option to select any particular app they'd like. 假设某些用户的Apple设备上可能未安装Google Maps,我想知道是否可以选择他们想要的任何特定应用程序。

My troubleshooting so far: I noticed geo: works in iOS and maps: works in Android but can't seem to have them both work on the different platforms. 到目前为止,我的疑难解答是:我注意到geo:在iOS上可用,而maps:在Android上可用,但似乎不能同时在不同的平台上使用它们。

I am pretty new to Phonegap and still learning. 我对Phonegap还是陌生的,仍然在学习。 Any help will be much appreciated! 任何帮助都感激不尽!

Your best option will be to go with "launch navigator". 最好的选择是使用“启动导航器”。 You should modify the functions and write conditions (to check the platform).It is the best option 您应该修改功能并编写条件(以检查平台)。这是最佳选择

Here is the link https://github.com/dpa99c/phonegap-launch-navigator 这是链接https://github.com/dpa99c/phonegap-launch-navigator

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM