I've encountered this problem before on android device. I fixed it, source of issue was payload.
But on iOS device, I think my payload is not wrong, when app is running background it is working properly.
My apns payload:
{
"aps": {
"alert": {
"body": "Egemen wants to play with you"
},
"type": "gameInvite",
"roomId": "104",
"joinToken": "j7dVdbvZ3S",
"displayName": "Egemen"
}
}
Hello,
I've encountered this problem before on android device. I fixed it, source of issue was payload. But on iOS device, I think my payload is not wrong, when app is running background it is working properly.
My apns payload:
{ "aps": { "alert": { "body": "Egemen wants to play with you" }, "type": "gameInvite", "roomId": "104", "joinToken": "j7dVdbvZ3S", "displayName": "Egemen" } }