获取设备唯一标识,需要用户授权
获取手机状态
Object object
| 属性 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| success | Function | 否 | 接口调用成功的回调函数,会返回图片保存路径 path |
| fail | Function | 否 | 接口调用失败的回调函数 |
| complete | Function | 否 | 接口调用结束的回调函数(无论成功失败都会执行) |
| 属性 | 类型 | 说明 |
|---|---|---|
| deviceId | String | 设备唯一标识。在 Android 上返回 IMEI 或 MEID; |
| oaid | String | 匿名设备标识符。 |
示例代码:
qg.getDeviceId({
success: function(data) {
console.log(`handling success: ${data.deviceId},${data.oaid}`);
},
fail: function(data, code) {
console.log(`handling fail, code = ${code}`);
}
});