在文档中找不到如何处理通知的点击只有一种方式可以订阅通知。
Notifications.addListener(this._handleNotification);
您必须使用“ origin”属性来确定是否接收或选择了通知。
_handleNotification = (notification) => {
if(notification.origin === 'received') {
// after receive push notification code
}else if(notification.origin === 'selected'){
// after click code
}
}