IONIC4 当app完全退出后 点击推送的消息怎样跳转到指定的页面?
IONIC4 当app完全退出后 点击推送的消息怎样跳转到指定的页面?
this.platform.ready().then(() => {
//初始化JPUSH
this.jpush.init();
//设置别名
this.jpush.setAlias({ sequence: 0, alias: res })
// 点击消息后跳转
document.addEventListener('jpush.openNotification', event => {
this.router.navigate(['/message']);
}, false);
});
这是jpush的代码段