【问题标题】:Cordova geolocation navigator.geolocation.getCurrentPosition bad window access positionCordova geolocation navigator.geolocation.getCurrentPosition 错误的窗口访问位置
【发布时间】:2015-02-06 08:21:28
【问题描述】:

我正在使用 Cordova 和 navigator.geolocation.getCurrentPosition 在启动应用程序时定位用户。 但是当应用程序启动时我收到一条错误消息:“/var/mobile/Applications/52E2F4B9-2066-4541-9696-86E18D5B16CB/City-Flash.app/www/index.html”想使用您当前的位置。 如何更改此消息?为什么我没有应用名称? 如果我访问我的网站,我会收到正确的信息并且我使用的是相同的方式。 在此处查看屏幕截图:http://www.city-flash.com/public/problem.PNG

有什么想法吗?

谢谢!!!

【问题讨论】:

    标签: geolocation location


    【解决方案1】:

    您是否在模拟器中测试您的应用。如果是,您必须在 Eclipse 中打开 Emulator Control,然后手动发送经度和纬度。 为我工作...

    【讨论】:

    • 不,我将应用程序发送到我的 iPhone 上进行测试,我在生产中遇到了同样的问题(在 appstore 中)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-05-07
    • 2021-07-27
    • 2019-11-14
    • 2018-12-29
    • 2012-08-14
    • 1970-01-01
    • 2017-11-30
    相关资源
    最近更新 更多