use vue-cli to develop the project, and then package it into a mobile phone app,. I want to get the unique identity of the device, but I have been unable to use the H5plus method. I would like to ask how I need to use h5plus in the project.
here"s how I tried to encapsulate the h5plus, but I couldn"t get it. The sentence "msg = false"
/*h5plus */
function plusready(){
}
function Getuuid (){
let msg = "";
if(window.plus){
plusready();
msg = plus.device.uuid
}else{
document.addEventListener("plusready",plusready,false);
msg = false
}
return msg
}
/* h5plus */
const PlusDevice = {
uuid:Getuuid()//uuid
}
export{PlusDevice}