unipush 当系统通知栏有多条消息时,触发click事件页面跳转失败,当系统通知栏只有一条消息时可以成功跳转
onLaunch: function() {  
            console.log('App Launch')  
            // 消息推送相关代码  
            // #ifdef APP-PLUS  
            plus.push.addEventListener('click', function(msg) {  
                console.log("msg", msg);  
                uni.switchTab({  
                    url: '/pages/msg/msg'  
                })  
            }, false);  
            plus.push.addEventListener('receive', function(msg) {  
                console.log("msg", msg);  
                plus.push.createMessage( msg.title,msg.payload);  
            }, false);  
            // var info = plus.push.getClientInfo();  
            // console.log( JSON.stringify( info ) );  
            // #endif  
        }, 
             
             
             
			 
                                        
                                     
            
1 个回复
2104_DLS
与push消息无关,你看一下跳转的失败回调有什么具体提示