Search code examples
iphoneobjective-ccertificate

Can I use the same .pem file for both Development and Distribution Profile


While making my application to be listened for Push Notification, I have read the guideline given by Apple. It is clearly mentioned that Certificate for Sandbox and Production should be separately created.
My question is, is that Production certificate goes with "Distribution Profile" also?
If yes, then does this means that even though I am creating this profile for testing purpose I have to attach my Production Certificate with that Profile?

Thank you in advance.


Solution

    1. The debug/developer pem has to be used with a developer mobileprovision and Apple's sandbox APNS URL

    2. The distribution pem can be used with an Adhoc and App Store mobileprovision and Apple's production APNS URL