# getDeviceUUID^6.8

获取设备唯一标识

# 接口调用示例

this.$bridge
  .getDeviceUUID('json')
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

1
2
3
4
5
6
7
8
9

# 参数

Prop Type Required Default Comment
type String false '' bridge版本^0.5.22起支持,
type为'json'时可以统一返回格式

# 返回参数

Prop Type Required Default Comment
deviceUUID String N N/A 手机设备标识串

# 接口返回示例

// 当type为'json'时,返回格式如下
{
  deviceUUID: '05c95xxxxxxxxxxxxxxxx'
}



// 不传type时 安卓返回
'05c95xxxxxxxxxxxxxxxx'

// 不传type时 ios返回
{
  deviceUUID: '05c95xxxxxxxxxxxxxxxx'
}

// 不传type时 鸿蒙返回
{
  ODID: '05c95xxxxxxxxxxxxxxxx'
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Last Updated: 11/6/2025, 2:56:55 PM