Company
Date Published
Author
Matt Graber
Word count
1572
Language
English
Hacker News points
1

Summary

Matt Graber, a game developer, won a sponsored prize at the Bitcamp hackathon for building an arcade game called Package Person. The game notifies players of their status on the leaderboard via email and text messaging, making it competitive and addictive. Matt used Courier's API to integrate notifications into the game. He created a basic game with Unity Engine and logged in to his Courier account. Then, he chose specific channels for the game (Mailjet for emails and Twilio for SMS messages) and wrote out the email message using variables from the game. The notification script code uses Unity's WWWForm class to construct a form with the data to be sent to Courier, and UnityWebRequest to send the POST request to the API server. Matt was able to integrate notifications into the game in under an hour, which would have been a nightmare without Courier's pre-built logic and conditionals for the message content.