Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS push notifications to large number of users

I saved users' device tokens in database. At the time to push notifications,I loaded all device tokens from database,then in a loop,I send push message to one user one time. Now there are about 300 thousands users,I want to know,is there any other better way? Thanks

like image 949
Mil0R3 Avatar asked Jan 20 '26 23:01

Mil0R3


1 Answers

There is no better way with Apple. You need to send the same message to each device token. Services like Parse.com will mask this behind the scenes dirty work for you by letting you broadcast to groups of devices, however you still need to subscribe each device token to the group initially...

So, to answer your question, no there is no better way, you must loop and send to all device tokens :(.

like image 67
Redth Avatar answered Jan 22 '26 15:01

Redth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!