Firebase cloud messaging onMessage not triggered in React app even after message is sent
问题 I am testing out the Firebase Cloud Messaging function in my React app which was bootstrapped with create-react-app. Note that I have already intialized firebase (including admin SDK on server-side) properly and my client side is deployed on https. What I did so far was to: Initialize firebase messaging in firebase.js, and also request for notification permission and listen out for onMessage event const messaging = firebase.messaging(); messaging .requestPermission() .then(() => { console.log