Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ios

firebase

Firebase IOS push notification doest not work when app is closed. I have followed all the steps as in documentation

like image 729
Chetan Kumar Avatar asked Jun 15 '16 08:06

Chetan Kumar


1 Answers

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"
}
like image 82
DiAvisoo Avatar answered Sep 21 '22 06:09

DiAvisoo