如果单击通知,我想打开特定页面。如何在React Native中做到这一点?
this.notificationListener = firebase.notifications().onNotification((notification: Notification) => {
this.notificationDisplayedListener = firebase.notifications().onNotificationDisplayed((notification: Notification) => {
// Process your notification as required
// ANDROID: Remote notifications do not contain the channel ID.
// You will have to specify this manually if you'd like to re-display the notification.
const { title,body } = notification; }
);
const { title,body } = notification;
});