Search code examples
node.jsfirebasepush-notificationfirebase-cloud-messagingfirebase-notifications

Firebase notification console equivalent in nodejs


I have the following code to send push notification in my node serverenter image description here

this works fine when the app is in foreground or in background. However this do not work when the app is killed.

Using firebase notification console, the push is received even when the app is killed

What am I missing?


Solution

  • To have the same behavior of firebase console, we should set the priority to 10, so it will awaken the app