5 minute recipe for Apple Push Notifications
May 18, 2013
Apple Push Notifications is service launched with iOS 3.0. It uses open IP socket allowing servers send instantly payload to mobile devices like iPhone or iPad. This solution has great advantage over pull approach because there is possibility to send message from application server to client with few bits of network traffic instead of overloading network with periodic queries. There are all snippets of code needed to quickstart with this technology. There are places in documentation where one can wonder how to do something, esspecialy how to handle tokens. Here the code comes: