Urban Airship – Push Notifications
Today I have finally added Push Notifications to Parcel Trackr.
I decided not to waste time and I went for Urban Airship. I registered, uploaded my push certificate, downloaded the sample and integrated the two systems.
Not everything went smoothly though because when I first ran the application I got a
Failed to register with error: Error Domain=NSCocoaErrorDomain Code=3000 UserInfo=0×120610 “no valid ‘aps-environment’ entitlement string found for application”
I thought my provisioning profile did not include the right entitlement… so I re-downloaded it and tried again. Turns out I was using the wrong provisioning profile.
So if you want to avoid my mistake just make sure that after you’ve configured push services in the iPhone Dev Center you download the updated provisioning profile and then you install it via XCode.
Other things worth checking include: the product name in your build configuration matches the app id and of course, the ultimate solution, clean all targets before building!
Cheers…
Tags: Apple, how to, iPhone, json, REST
By Nick | 4. Oct 2009 | Objective C, REST, iPhone | 2 Comments »
I’m glad you got it working quickly! Let us know if we can do anything to help.
Thank you for this good publish. It contains plenty of info which I need. I’ll bookmark your site by my next check out.