鍍金池/ 問答/HTML/ ionic2 jpush插件 打開通知消息后 跳轉(zhuǎn)頁面問題

ionic2 jpush插件 打開通知消息后 跳轉(zhuǎn)頁面問題

 onOpenNotification = function (event) {
       this.events.publish('GET_MESSAGE');    
        })

//這段是在app.components.ts

   this.event.subscribe('GET_MESSAGE', () => {
        this.rootPage = MsgPage;
    })
    
    這樣始終不行,請問為什么?

回答
編輯回答
毀與悔

你的方法使用錯(cuò)誤,具體可以參考官方文檔的寫法,具體見:Navigating from the Root component

2017年9月23日 14:59