Overview

What will follow is a whirlwind tour of the way the HTTPush web service works.

Essential reads

Push explained from a phones view

  1. The iPhone requests a token via an Objective-C call.
  2. This token needs to be send, along with a recipient_key (an application wide unique identifier eg. a username), to the HTTPush web service.
  3. You can send a message to the HTTPush web service with the recipient_key and the message is forwarded to the device which belongs to the token stored.

Step 1 and 2 need to be done every time your iPhone app launches. It should not be done on the main thread for performance reasons.

What you need to do to use the API

  1. You need to be a registered iPhone developer.
  2. You login into the developer account and create the necessary certificate.
  3. You sign up for an HTTPush web service account.
  4. You login to the HTTPush web service management site at h.squidshot.com/:your-account-name.
  5. You create a new application and upload the certificate.
  6. You create a new API-User for the application.
  7. Use any HTTP library to send messages to the HTTPush web service using the application_hash and the API-User’s key and password.

API calls

About the HTTPush web service