Tags / objc

Setting up Apple Push Notifications

Saturday, September 15, 2012

While trying to figure this out I came across a great article by Matthijs Hollemans. I suggest following it if you’re interested in an in-depth tutorial. What follows is a more concise version of that article and instead of using PHP I’m using a variant of Jacky Tsoi’s Python script. This is pretty tedious and there are a lot of steps you have to get right in order for this to work properly so hang in there.

Continue reading →

Sending Multipart Forms with Objective-C

Wednesday, September 12, 2012

It took me a few evenings to figure this out so I’m writing a quick explanation based on what I’ve found to work. My use-case is pretty simple, I want to POST some data to a form on a server from an iOS app I’m building. I’ll be using NSURLRequest to build the request object and NSURLConnection to make the actual connection to the server. The first thing we need to understand is how Multipart Form requests should be structured.

Continue reading →