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
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 :(.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With