title: Advice on getting Push Notifications to Work on Production Builds
body: <p>I have a production iOS App that I can send development push notifications (APNs) no problem from my production API environment.  The issue is when I archive the app and publish to the App Store the push notifications never work from the App downloaded from Itunes from my production API environment.</p>
  
  <ol>
  <li>I have set up Certificate for APN distribution </li>
  <li>I create the PEM file
  from the certificate. </li>
  <li>APN are enabled in Xcode > Capabilities</li>
  </ol>
  
  <p>In Apple's Document here "Troubleshooting Push Notifications"
  <a href="https://developer.apple.com/library/ios/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG21" rel="nofollow">https://developer.apple.com/library/ios/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG21</a></p>
  
  <blockquote>
    <p>"When using Xcode to submit an app, Xcode will re-sign it using the
    code signing identity and associated provisioning profile you select.
    So the signature of the submitted app and its contents might be
    different than what's in the Xcode archive."</p>
  </blockquote>
  
  <p>Then </p>
  
  <blockquote>
    <p>Here's how to check the signature for an iOS app being submitted to
    the App Store:</p>
  </blockquote>
  
  <p>I follow the instructions but not sure what I should be looking for specifically when running this command?</p>
  
  <pre><code>codesign -d --entitlements :- "Payload/YourApp.app"
  </code></pre>
  
  <p>Also when I try and test this before submitting app by going to  Xcode > Window > Organizer and with the list of archives I will export the Itunes Production Archive by the following means:</p>
  
  <pre><code>Save for iOS App Store Deployment
  Sign and Package application for distribution in the iOS App Store
  </code></pre>
  
  <p>I export the ipa file and will install via Itunes to my iphone.  However my production deployment build never completes installing on my iphone before being removed (Icon will show installing progress but then disappear)</p>
  
  <p>So I'm not too sure how to test deployment push notifications (not development push notifications as that I can do) without submitting new build for review in Itunes Connect?</p>
  
  <hr>
  
  <p>So what usually is the issue with Production Deployments not being able to send Push Notifications when development will work? (Same device identifier code, Same API environment etc)</p>
  
  <p>How can I test deployment push notifications (not development) before submitting archive to Itune Connect?</p>