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"
}