Did not get the push notification data while sending notifcation through my php server using fire base registration token and server key.But it works when i send notification from firebase.Anybody please help me
Asked
Active
Viewed 351 times
-2

ReyAnthonyRenacia
- 17,219
- 5
- 37
- 56

Vishnu C
- 3
- 3
-
1Show us your code. – lolbas Mar 01 '18 at 07:08
-
check with your php code. – remyr3my Mar 01 '18 at 07:08
-
Please check the object of your notification payload. Also, check if notification is being delivered when the app is active or not. If the object is not proper, notification will be delivered only when the app is active and if the payload is proper it will be there in notification drawer. – iOS Developer Mar 01 '18 at 07:12
-
possible Sender ID issue, please check that once. – Geet Mar 01 '18 at 07:37
-
post the response of your php call to firebase as well – Edison Lo Mar 01 '18 at 07:37
1 Answers
0
Please note that to receive push notification in iOS the payload format should be like this
{
"to" : "your token here",
"notification" : {
"body" : "great match!",
"title" : "Portugal vs. Denmark"
},
"data" : {
"body" : "great match!",
"title" : "Portugal vs. Denmark"
}
}

Manish Malviya
- 546
- 2
- 15