Firebase推送通知通过http协议发送单击事件分析

Firebase推送通知通过http协议发送单击事件分析,firebase,push-notification,firebase-cloud-messaging,firebase-analytics,Firebase,Push Notification,Firebase Cloud Messaging,Firebase Analytics,有没有办法获得通过firebase推送通知(fcm)HTTP协议通过web应用发送的已点击通知的数量?通知打开 通过将以下内容添加到firebase-messaging.js文件中,可以侦听数据有效负载的通知单击: self.addEventListener('notificationclick', function(event) { event.notification.close(); // Do something as the result of the notificatio

有没有办法获得通过firebase推送通知(fcm)HTTP协议通过web应用发送的已点击通知的数量?

通知打开 通过将以下内容添加到firebase-messaging.js文件中,可以侦听数据有效负载的通知单击:

self.addEventListener('notificationclick', function(event) {
  event.notification.close();

  // Do something as the result of the notification click
});
通知关闭 您可以通过以下方式侦听通知关闭事件:

self.addEventListener('notificationclose', function(event) {
  // Do something as the result of the notification close
});
Ref:


我知道..我要求我必须知道通过此添加事件侦听器单击通知发送的用户数。