1***@qq.com
1***@qq.com
  • 发布:2017-07-05 18:13
  • 更新:2017-07-06 08:25
  • 阅读:1398

无网络,GPS开启的情况下,plus.geolocation.getCurrentPosition直接走报错结果

分类:MUI

当把手机设置成无网络,GPS开启的时候,
plus.geolocation.getCurrentPosition(this.translatePoint, function(e) {
mui.toast("异常:" + e.message);
});
结果直接走的异常;

loadGPS: function() {
plus.geolocation.getCurrentPosition(this.translatePoint, function(e) {
mui.toast("异常:" + e.message);
});
}
mui.plusReady(function() {
vm.loadGPS();
setTimeout(function fun() {
vm.loadGPS();
setTimeout(fun, 1 60 1000);
}, 1 60 1000);

});
业务要求每分钟刷新一次

2017-07-05 18:13 1 条评论 负责人:无 分享
已邀请:
Trust

Trust - 少说废话

目前的策略是,只有联网的情况下可用。

1***@qq.com

1***@qq.com (作者)

那请问在有网没开GPS定位的情况下,能通过网络获取位置信息吗?

该问题目前已经被锁定, 无法添加新回复