2017-01-02 172 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屏幕你想要显示。我假设你正在使用导航器进行多屏幕显示。

相关问题