Errata for Push Notifications by Tutorials, 2nd Edition

Found an issue in Push Notifications by Tutorials, 2nd edition? Post it here!

I encountered the following two issues going through Chapter 6 - Server Side Pushes:

  1. 06-server-side-pushes/final/sendPushes.php is missing the following closing lines:

    sendNotifications(true); // Development (Sandbox)
    sendNotifications(false); // Production
    ?>

  2. Without the device token added to the database, sendPushes.php on PDF p. 60 does nothing, so it would be helpful to tell the reader not to run the command until Chapter 7, as some readers may try to do so as they follow along.

1 Like

@gargoyle Can you please help with this when you get a chance? Thank you - much appreciated! :]

Thanks! I was starting to pull out my hair! As I am not familiar enough with Push notifications yet, I thought it was enough to run the PHP script at the end of the 6th chapter because the device registering to the Apple server would suffice.
Thanks again.