云端打包后
调用: plus.push.getClientInfoAsync()
报错: {code:-1,message:'no push platform'}
调研: plus.push.getClientInfo();
返回: {appid: "null", appkey: "null",clientid:"null", id: "null", token: "null"};
![yyh_developer](http://img-cdn-tc.dcloud.net.cn/uploads/avatar/000/54/51/15_avatar_mid.jpg?v=1664171725)
- 发布:2022-09-23 10:29
- 更新:2022-09-26 19:09
- 阅读:405
产品分类: HTML5+
HBuilderX版本号: 3.6.4
手机系统: Android
手机系统版本号: Android 12
手机厂商: 华为
手机机型: nova5i
打包方式: 云端
App下载地址或H5⽹址: 链接:
操作步骤:
预期结果:
获取到clientid,传给后台服务绑定
获取到clientid,传给后台服务绑定
实际结果:
调用: plus.push.getClientInfoAsync(), 报错:获取个推标识失败报错{code:-1,message:'no push platform'};
调用:plus.push.getClientInfo(), 返回: {appid: "null", appkey: "null",clientid:"null", id: "null", token: "null"};
调用: plus.push.getClientInfoAsync(), 报错:获取个推标识失败报错{code:-1,message:'no push platform'};
调用:plus.push.getClientInfo(), 返回: {appid: "null", appkey: "null",clientid:"null", id: "null", token: "null"};
bug描述:
云端打包后调用plus.push.getClientInfoAsync(),报错:{code:-1,message:'no push platform'}
1 个回复
DCloud_Android_THB
你是5+项目吧? 检查一下manifest.json源码视图,是否配置为