I have the following code to send push notification in my node server
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?
To have the same behavior of firebase console, we should set the priority to 10, so it will awaken the app