panyh
panyh
  • 发布:2020-03-26 16:23
  • 更新:2020-03-26 16:40
  • 阅读:635

【报Bug】小米手机上无法获取clientid,其它手机正常

分类:uni-app

详细问题描述

小米手机上无法获取clientid,其它手机正常

[内容]

uni.getProvider({
service: 'push',
success: function(res) {
console.log(res);
if (res.provider.indexOf('unipush') > -1) {
uni.subscribePush({
provider: 'unipush',
success: function(res) {
console.log(res);
var getCid = setInterval(function() {
var ClientInfo = plus.push.getClientInfo();
var clientid = ClientInfo.clientid,
token = ClientInfo.token;
console.log(clientid);
if (clientid && clientid != 'null') {
console.log(clientid);
that.Config('token', token, true);
that.Config('clientid', clientid, true);
clearInterval(getCid);
}
}, 50);
}
});
}
}
});
[步骤]

[结果]
就小米手机获取不到clientid

2020-03-26 16:23 负责人:无 分享
已邀请:
panyh

panyh (作者) - p

重新打包自定义基座就可以了

该问题目前已经被锁定, 无法添加新回复