Debugging APNS certificates
I've just spent sometime debugging an interesting issue with push notifications in our TMCS iPhone App.
Apple informed me they would not approve the latest version (1.5.0) of the application as it "had a bug". The bug was the app was failing to prompt the user to allow push notifications. Which was very strange as it was working fine on all three of my test devices.
After pulling my hair out trying to debug code which I knew worked fine I decided to recreate the distribution provisioning profile (xxx.mobileprovision) via iOS Provisioning Portal.

Once the new profile was recompiled into the binary (app) everything started working fine.
The reason it didn't originally work was because I enabled push notifications after creating the original distribution profiles; therefore the profile did not have the push notification key within it; however the Development profile did have the key which is why it worked on my three development devices.
For future reference you can check the .mobileprovision file by opening it with a text editor and looking for the key aps-environment.

No comments.