获取设备信息-异步

使用说明

客户端 Android iOS
支持说明 支持 支持
import { getDeviceInfo } from "@yl/super-jssdk";

getDeviceInfo();

返回说明

参数 类型 作用
resolve(res) Function 获取成功,res 结构如下
reject(err) Function 获取失败,err 返回 {errCode: 10001,errMsg: '获取设备信息失败'}

res 返回结果为一个对象,具体格式如下:

参数 说明
app_id -
app_user_id -
available 是否可用
channel_id -
cordova cordova版本
isVirtual 是否为虚拟机
latitude -
longitude -
manufacturer 手机品牌
model -
platform 手机系统
serial -
uuid -
version 手机版本

代码示例

getDeviceInfo().then(res=>{
  console.log('res', res);
}).catch(err=>{
  console.log('err', err);

});

results matching ""

    No results matching ""