I am trying to implement push notification service for my new chat application. For the POC sake, I got my device registered a demo app with FCM and created an account for my app on FCM. That way, I am done with all the formalities. I am using XMPP protocol based implementation from google.
Now, when I try to send the push for more than 50 times in a single shot(using for loop) to my android device. FCM sends me the delivery receipt for all the push notifications (say if I am sending 60 push at times then it sends me delivery receipts for 60 push) but on my mobile I just get 49 push notifications.
I tried multiple ways like sending each PUSH after a gap of a second, but still getting 49 messages.
Can any one suggest me what shall I do to rectify it. I want to see all the push notifications on my device. I have gone through various links, but could not find any help.
The packet I am sending from my server
{
"delivery_receipt_requested":true,
"notification":{
"title":"XXX",
"body":"Message 111...0"
},
"data":{
"message":"This is the simple sample message"
},
"time_to_live":2000,
"message_id":"m-0-f21bb45d-213c-4306-b773-1f7f71d1494b",
"to":"SOME VALID DEVICE TOKEN"
}
Can someone please suggest if I am missing anything.
Thanks in advance.