gpt4 book ai didi

javascript - Cordova - ios - 在 map 应用程序中打开 - 未打开 - 'maps://?q='

转载 作者:行者123 更新时间:2023-11-29 05:56:28 26 4
gpt4 key购买 nike

我已经检查了我的 config.xml,并且

<allow-intent href="maps:*" launch-external="yes" />

我的代码是

window.open('maps://?q=', latLng, '_system');

latLng = 'lat,Lng'

我已经尝试过了

'maps:q='
'maps:'
'maps:0, 0?q='
'maps:daddr='
'maps://maps.apple.com/?q='

最佳答案

对于 Google 或 Android,您仍应使用 Web url,它会自动重定向到应用程序,例如:

https://maps.google.com/maps?daddr=<lat>,<long>&amp;ll=

对于苹果 map ,同样的原理,只是改变协议(protocol):

maps://maps.google.com/maps?daddr=<lat>,<long>&amp;ll=

关于javascript - Cordova - ios - 在 map 应用程序中打开 - 未打开 - 'maps://?q=',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55104314/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com