SimpleWeather.js位置更新无法在iOS设备上运行
SimpleWeather.js location update not working on iOS devices
我正在使用SimpleWeather.js开发一个非常基本的天气应用程序,它在pc的(据我所知)以及android设备上运行良好。
它在这里工作:http://www.joshivity.com/asfuck
我的问题:我无法将iOS设备同时连接到这两个设备,在页面加载时自动更新位置,或在单击"更新位置"时手动更新位置。
这是位置代码:
$('#locate').on('click', function() {
navigator.geolocation.getCurrentPosition(function(position) {
loadWeather(position.coords.latitude+','+position.coords.longitude);
});
});
有什么想法吗
显然,Chromes默认(在手机上)设置为"从不"使用定位服务。因此,在改变了这一点之后,它似乎正在发挥作用!
相关文章:
- 无法在iOS模拟器上运行简单的基于KineticJs的Cordova/PhoneGap应用程序
- Meteor应用程序突然不再在iOS上运行
- 如何仅在设备基于 iOS 时运行 jQuery 代码
- 全屏API无法在Chrome/iOS上运行
- 在iOS应用程序的分析云代码上运行crypto-js的问题
- Cordova应用程序在安卓系统上运行,但线程似乎在ios上冻结了;“由于页面加载而重置插件”;
- Phonegap内部版本:应用程序无法在iOS上运行
- removeClass无法在iOS v2上运行
- 运行IOS自动化脚本时需要查找崩溃
- 从运行 JavaScript 中排除 iOS
- 流星运行ios --冗长
- 自动滚动到目标,iOS 中的 jQuery 运行得太远
- Sencha Touch应用程序在Android和iOS上运行良好,但在Windows 8.1上挂起
- 每次加载新页面时,在iOS webView中运行JS
- SimpleWeather.js位置更新无法在iOS设备上运行
- Phonegap简单javascript未运行(onClick问题?)-Android和iOS都有
- Parse.Cloud在iOS上运行缓慢
- FileReader无法在iOS 8上运行
- 使用webkit运行iOS应用程序时延迟选择
- 我的javascript代码在pc上运行,但没有;t在android或ios上运行