0

我使用 Cordova.jar 2.9.0。
这是代码:

<html>
    <head>
        <meta charset="utf-8" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
        <link rel="stylesheet" type="text/css" href="css/index.css" />
        <title>Hello World</title>
        <script type="text/javascript" src="cordova.js"></script>
        <script type="text/javascript" src="js/index.js"></script>
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
        <script type="text/javascript">
            $(function () {
                $("#BtnNavigation").click(function () {
                    alert("dfgdfgh");
                    window.location.assign("guidance-drive://v2.0/navigate/destination/?latlon='25.245789','75.254789'&title=Hello World");
                });
            });
        </script>
    </head>
    <body>   
         "http://example.com"
         <button id="BtnNavigation" name="Map" style="padding: 50px 100px;">Map</button>
    </body>
</html>

按钮单击显示错误:

The Protocol Not Supported(guidance-drive://v2.0/navigate/destination/?latlon='25.245789','75.254789'&title=Hello World)

删除一些文本“看起来您的帖子主要是代码;请添加更多详细信息”

4

1 回答 1

0

用于 Windows Phone 8 设备的 Url Scheme 未在 Nokia X 设备上实现,因此您不能在 Nokia X 设备上使用它。此外,据我所知,诺基亚 X 没有公开发售 HERE Drive 使用,因此我什至无法建议使用任何替代 API。

于 2014-07-27T11:43:48.573 回答