biubiubiubiu
biubiubiubiu
  • 发布:2018-02-07 11:25
  • 更新:2021-02-01 20:46
  • 阅读:1885

获取GPS信息失败

分类:HTML5+

开发中,客户的机器只能连接指定的端口服务器;

plus.geolocation.getCurrentPosition( function(p){  
console.log('-->Send Geolocation\nLatitude:' + p.coords.latitude + '\nLongitude:' + p.coords.longitude + '\nAltitude:' + p.coords.altitude);  
app.sendGPS(p.coords.longitude, p.coords.latitude, "GPS");  
}, function(e){  
console.log(e.message);  
mui.toast("获取位置信息失败");  
});

调用该方法,提示:
[geolocation:4]网络连接异常 请到http://lbs.amap.com/api/android-location-sdk/guide/utilities/errorcode/查看错误码说明,错误详细信息:please check the network

请问:这是需要开通互联网的指定端口吗?

2018-02-07 11:25 负责人:无 分享
已邀请:
maozai

maozai - 小程序开发者

老哥,我也遇到这个报错了,你知道原因了嘛~

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