I was trying to integrate Apple Push Notification feature in one of my projects. I keep getting this:

Push notifications are disabled {"source":{},"type":"remote","error":"Error
Domain=NSCocoaErrorDomain Code=3000 \"no valid 'aps-environment' entitlement
string found for application\" UserInfo=0x8bfc60 {NSLocalizedDescription=no valid
'aps-environment' entitlement string found for application}"}

If your like me and you start banging your head in your keyboard, here’s how I did it:

  • Visit the Apple Developers Portal, iOS Provisioning Portal
  • Create a new AppID yes a new AppID, I tried de-activate/activate the Push Notifcation but didn’t work for me
  • For those who are using Ad Hoc for beta-testing, I’d suggest you delete the profile if you have it, then create a new one with the new AppID you just created.
  • Open Xcode and go to Organizer
  • Delete the old Ad Hoc Provisioning profile and hit Refresh
  • Once you have the new Ad Hoc Provisioning profile
  • Click the Project
  • On the TARGETS portion, select your target “PROJECT_NAME” usually
  • Click on SUMMARY
  • Scroll down to “Entitlements”
  • Enable Entitlements
  • Select the Entitlements file. What I did was name it after the actual project name
  • Delete the iCloud Parameters if you don’t need it, specially if your AppID doesn’t have it activated.
  • Clean -> Build -> Archive

    PS: I’m working on a Titanium Base project, but this should work with regular iOS projects as well.

    Hope that helps.

I’m finally getting used to park in a very tight spot. Next move is to add the roll-ups and markers.

I’m still at my 80kph(49.xx mph) limit for the car but I can really feel the power of the 6-speed AT specially the response of the engine when you press the gas pedal. Can’t wait to break the speed limit and take it for a real spin.

Maybe the best programmers aren’t those who spectacularly solve crazy problems, but those who don’t create them, which is much more silent. – Lena Herrmann

http://tammersaleh.com/posts/the-number-one-trait-of-a-great-developer

And there I was! I though they completely ignored my menubar FTW!

And there I was! I though they completely ignored my menubar FTW!

at the #rubyrumble with #phrug

at the #rubyrumble with #phrug

back-to-school geektool set

back-to-school geektool set

Tron Inspired Desktop

Tron Inspired Desktop