更新记录

1.0.0(2025-03-09)

  • 发布插件

平台兼容性

Vue2 Vue3
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
HBuilderX 4.45,Android:5.0,iOS:不支持,HarmonyNext:不支持 × × × × × ×
钉钉小程序 快手小程序 飞书小程序 京东小程序 鸿蒙元服务
× × × × ×
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
× × × × × × × × ×

温馨提示 如何调用插件

  import {
  register,
  getIdCodes,
  getOAID
} from "@/uni_modules/yuange-oaid"

初始化注册

register({
  success(res) {
    console.log(JSON.stringify(res));
    that.msg = JSON.stringify(res);
  },
  fail(err) {
    console.log(JSON.stringify(err));
    that.msg = JSON.stringify(err);
  }
})

获取OAID

getOAID({
  success(res) {
    console.log(JSON.stringify(res));
    that.msg = JSON.stringify(res);
  },
  fail(err) {
    console.log(JSON.stringify(err));
    that.msg = JSON.stringify(err);
  }
})

获取设备多种标识

getIdCodes({
  success(res) {
    console.log(JSON.stringify(res));
    that.msg = JSON.stringify(res);
  },
  fail(err) {
    console.log(JSON.stringify(err));
    that.msg = JSON.stringify(err);
  }
})

支持情况

厂商或品牌 系统或框架
华为(Huawei) HMS Core 2.6.2+、Google Play Service 4.0+
荣耀(Honor) Magic UI 4/5/6、MagicOS 7.0+、Google Play Service 4.0+
小米(XiaoMi、Redmi、BlackShark) MIUI 10.2+、Google Play Service 4.0+
维沃(VIVO、IQOO) Funtouch OS 9+、OriginOS 1.0+、Google Play Service 4.0+
欧珀(OPPO、Realme) ColorOS 7.0+、Google Play Service 4.0+
三星(Samsung) Android 10+、Google Play Service 4.0+
联想(Lenovo) ZUI 11.4+、Google Play Service 4.0+
华硕(ASUS) Android 10+、Google Play Service 4.0+
魅族(Meizu) Android 10+、Google Play Service 4.0+
一加(OnePlus) Android 10+、Google Play Service 4.0+
努比亚(Nubia) Android 10+、Google Play Service 4.0+
酷派(Coolpad) CoolOS、Google Play Service 4.0+
酷赛(Coosea ) Android 10+、Google Play Service 4.0+
卓易(Droi ) Freeme OS、Google Play Service 4.0+
其他(ZTE、HTC、Motorola、……) SSUI、Google Play Service 4.0+

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

暂无用户评论。

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问