plus.device.getOAID({
success: (e) => {
console.log('getOAID success: ' + JSON.stringify(e));
this.OAID = e.oaid;
},
fail: (e) => {
this.error = JSON.stringify(e)
this.OAID = 'Oops!'
console.log('getOAID failed: ' + JSON.stringify(e));
this.title = "你好"
}
});
- 发布:2020-06-24 11:37
- 更新:2020-07-29 14:52
- 阅读:989
产品分类: HTML5+
HBuilderX版本号: 2.7.14
手机系统: Android
手机系统版本号: Android 6.0
手机厂商: vivo
手机机型: vivo Y66
打包方式: 云端
示例代码:
操作步骤:
plus.device.getOAID({
success: (e) => {
console.log('getOAID success: ' + JSON.stringify(e));
this.OAID = e.oaid;
},
fail: (e) => {
this.error = JSON.stringify(e)
this.OAID = 'Oops!'
console.log('getOAID failed: ' + JSON.stringify(e));
this.title = "你好"
}
});
plus.device.getOAID({
success: (e) => {
console.log('getOAID success: ' + JSON.stringify(e));
this.OAID = e.oaid;
},
fail: (e) => {
this.error = JSON.stringify(e)
this.OAID = 'Oops!'
console.log('getOAID failed: ' + JSON.stringify(e));
this.title = "你好"
}
});
预期结果:
getOAID success: ee9bff76-ef9f-c58f-fdbd-5efebfef39fb
getOAID success: ee9bff76-ef9f-c58f-fdbd-5efebfef39fb
实际结果:
无反应。
无反应。
bug描述:
执行后无任何响应。也没有回传值,也不会打印成功或失败。不会回调!另外只要执行过plus.device.getOAID,就会导致plus.gallery.pick设置多张图时multiple:true,不显示任何图片。应该是JS哪里有报错中止了。我测试了OPPO手机、VIVO手机都是一样,HuaWEI没有问题!完全可以复现。
2 个回复
y***@126.com
oppo r9m 也是没反应
j***@163.com
HBX版本2.8.3 v3模式下 调用了app直接闪退
1***@qq.com
底层有些不给获取,就不能获取的到
2020-07-29 16:37