Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple Push Notification - all messages get sent but not all get delivered

I have a problem with sending Apple Push Notifications.

When I send a message to two devices only, everything is working. But When I send a message to all devices in the Database, then not all Push Message get delivered, but I get no error for any device. Sending was ok!

And one of the devices which gets a message in the first test, didn't get a message, when I post the message to all devices.

The send procedure is working, because I get a message on my phone at the first test and when I send to all devices it works too. Can there be any other problem which cause this problem?? Or is this a Apple bug/problem.

I have no idea what the problem could be. Does anyone have this problem too??

like image 400
tablesuplex Avatar asked Nov 02 '22 15:11

tablesuplex


2 Answers

When you were working for 1 device, I guess you were using development profile. And for multiple device, you must be using distribution profile. So just check all your provisioning profiles and registered devices according to provisioning profile. Delete the profile which you are not using and that should solve your problem.

like image 85
Baby Groot Avatar answered Nov 11 '22 14:11

Baby Groot


If you are sending same message many time with in a certain time from a same device token, then last message will be send, I think apple remove duplicate records in backend.

like image 22
Vinay Vaish Avatar answered Nov 11 '22 14:11

Vinay Vaish