Firebase IOS push notification doesn't work when app is closed

3 Solutions Collect From Internet About “Firebase IOS push notification doesn't work when app is closed”

It’s a quick fix, simply add “priority”: “high” in your payload next to “notification” etc. and the iOS Notification will work when the app is in the background.

So this will work:

"to":"TOKEN ID",
"notification" : {
  "body" : "test"
},
"priority": "high"
}

What worked for me was simply adding title to the notification like this:

"notification" : {
  "title": "foo",
  "body" : "bar"
}

Please try with this, hope it works:

POST https://gcm-http.googleapis.com/gcm/send
{
    "to": "TOKEN_ID",
    "priority": "high",
    "notification": {
        "title": "foo",
        "body": "bar"
    }
}