uniapp 获取手机的 cid (clientId)
onLaunch: function() {
//只有在基座运行的情况下才可以进行打印看到
const clientInfo = plus.push.getClientInfo()
console.log(clientInfo)
},
这样就可以获取到并打印出来了
还有需要在manifest.json 中配置推送才可以,获取到cid !
uniapp 获取手机的 cid (clientId)
onLaunch: function() {
//只有在基座运行的情况下才可以进行打印看到
const clientInfo = plus.push.getClientInfo()
console.log(clientInfo)
},
这样就可以获取到并打印出来了
还有需要在manifest.json 中配置推送才可以,获取到cid !