|
[BUG]
aMapReportLocation安卓 opple 和三星下面没法应
[复制链接]
本帖最后由 xiaoqiqi 于 2017-11-17 17:06 编辑
aMapReportLocation安卓 opple 和三星下面没反应,回调里面直接打调试,没得任何输出,ios正常。
求助。。。
- var aMapReportLocation = api.require('aMapReportLocation');
- aMapReportLocation.startLocation({
- accuracy : 'device_sensors',
- filter : 100, //位置更新所需最小距离(单位米)
- autoStop : false,
- report : {
- uid : '123',
- url : API_URL + "main/uploadLocation",
- interval : 3, //30秒上报一次
- type : 'post',
- headerField : {
- timestamp : new Date().getTime(),
- ContentType : 'text/plain',
- authorization : "pfx_" + token,
- Accept : '*/*'
- }
- }
- }, function(ret) {
- console.log("上报成功" + JSON.stringify(ret));
- });
复制代码
|
|