9***@qq.com
- 发布:2024-01-26 10:49
- 更新:2024-01-26 14:27
- 阅读:123
2 个回复
9***@qq.com (作者)
不是云端打包的,是本地打包
9***@qq.com (作者)
已经知道了,不能用这方法去获取
uni.getPushClientId({
success: (res) => {
registrationId = res.cid;
console.log("cid==",res);
},
})
要用
const clientInfo = plus.push.getClientInfo();
console.log("clientInfo==",clientInfo)
registrationId = clientInfo.clientid;