l***@163.com
l***@163.com
  • 发布:2021-10-26 10:57
  • 更新:2021-10-26 11:45
  • 阅读:586

安卓平台,plus.push.addEventListener( "click",function(msg){},false)在app.vue点击不能跳转设置角标也不显示哪里错了

分类:HTML5+

onLaunch(){
let _this=this;
let pinf = plus.push.getClientInfo();
let cid = pinf.clientid;//客户端标识
//监听系统通知栏消息点击事件
plus.push.addEventListener('click', function(msg){
_this.$router.push({ name: 'homePage'});//不跳转
plus.runtime.setBadgeNumber(-1);
}, false);
//监听接收透传消息事件
plus.push.addEventListener('receive', function(msg){
//处理透传消息的业务逻辑代码
plus.runtime.setBadgeNumber(1);//不显示
}, false);
},

2021-10-26 10:57 负责人:无 分享
已邀请:
xLzii

xLzii

1、跳转要用uni.xx;
2、设置角标不显示看看app开了权限没有。

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