1

We have large number of users for a game and we have written our own PHP server for sending push tokens. Now when we send push from server then server sends Push to all devices and shows no error. But over device, push is not received.

We tried to send to single device from the server with same application certificate then it worked fine. But when we send it to all devices then push was not recieved. Is there any limit imposed by Apple on number of push in 1 second OR is there any other suggestion which we can follow to send push to large number of devices in parallel?

4

2 回答 2

1

The limit applies only if you send multiple notifications to the same device

http://developer.apple.com/library/ios/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG23

You wrote that one notifications to one device is received, when you try to send to all the devices nothing is received. What about 2 notifications to 2 devices?

I suspect that there's something wrong with your php and handling more than one device token. Don't reinvent the wheel. http://www.easyapns.com/

If you are using a custom code that can't be replaced I would suggest reading the easyapns php code and try to figure out what you did wrong.

于 2013-05-21T09:25:26.787 回答
0

We have changed implementation from PHP to Java APNS provided by google code and its work perfectly fine for thousands of devices. Tested for 20K devices and works like charm. Following is the link of google code : code.google.com/p/javapns

于 2013-05-27T07:56:03.543 回答