In the TileTapper game, we send out notifications when a new level is created and when a new high score is submitted. We'll see how to send all the notification types (except raw; by all means do this if you need to in your application, but we're not going to discuss it now).
First, we’ll look at a set of scripts which gets all the URIs from the
channels table, which have been updated in the last 30 days so we know they are likely to be active and then sends notifications out to the correct PNS services depending on the platform type.
sendNotifications function gets the channels from the
channels table. Then, it loops through them, calling the
addToQueue method that queues PNS task functions for each channel. We don't call the ...