2017-01-02 62 views

回答

3

如果你還沒有加入自己的通知數據淨荷一些更多的信息,這將是一個指向你自己你想渲染的畫面:

{ 
    foreground: false, // BOOLEAN: If the notification was received in foreground or not 
    userInteraction: false, // BOOLEAN: If the notification was opened by the user from the notification area or not 
    message: 'My Notification Message', // STRING: The notification message 
    data: { 
     yourKey: 'value' 
    }, // OBJECT: The push data 
} 

一旦您會收到通知訪問該功能中的額外數據字段:

onNotification: function(notification) { 
     console.log('NOTIFICATION:', notification); 
    }, 

一旦完成該操作,一個視圖堆棧或動態生成渲染功能內的視圖或設置initialRoute屏幕你想要顯示。我假設你正在使用導航器進行多屏幕顯示。

相關問題