title: How do I check if an iOS distribution provisioning profile has push notifications enabled?
body: <p>I have an app which was supposed to have push notifications enabled, but for some reason doesn't have them. I've seen other people download and install the app, and it doesn't even prompt them for permission to send push notifications. As expected, this app doesn't appear in their Settings > Notifications.</p>
  
  <p>However, on my iPad, I am able to receive push notifications from this app, and it does show up on my Settings > Notifications. I have deleted and reinstalled the app to make sure I had the same thing everyone else has (and not a development version), and I'm still able to get notifications.</p>
  
  <p>Now, this app was written for a client who sent me all the provisioning profiles (dev, adhoc, distribution) as well as the files needed to be able to send push notifications, so I can't know for sure that everything was properly created.</p>
  
  <p>My theory right now is that:</p>
  
  <ul>
  <li>the <strong>adhoc profile I received was "properly created"</strong> (i.e. generated after setting up APNs on the app's App ID in the Provisioning Portal)</li>
  <li>the <strong>distribution profile I received was generated before setting up APNs</strong> for this app (and thus, it's not "push enabled")</li>
  <li>the reason I'm able to receive push notifications on my device is because <strong>during development I installed an adhoc version</strong>, which prompted me for permissions to receive push notifications, and even though I've deleted this adhoc version and downloaded the version from the store, <strong>the device has "cached" the fact that I'm willing to receive notifications and no longer prompts me for it</strong>. I've checked with other apps and indeed, after I delete and reinstall them, they won't prompt me again for permissions to receive push notifications.</li>
  </ul>
  
  <p>So my questions are:</p>
  
  <ul>
  <li>Does this theory make sense?</li>
  <li>If it does, this means I'll have to ask the client to generate a new distribution provisioning profile. <strong>How can I verify that this profile is "push enabled"?</strong> (i.e. considering that I can't just install an app compiled with it)</li>
  </ul>