Firebase IOS push notification doest not work when app is closed. I have followed all the steps as in documentation
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"
}
}
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"
}