title: iOS development/production push certificates: when and how?
body: <p>The documentation is very obscure about this so I couldn't find a real answer to these questions:</p>
  
  <ul>
  <li>In which exact cases should I use development certificate instead of production to send push notifications?</li>
  <li>How does apple detect that the app is in "development" mode? Is this something hard-coded during the compilation according to the build configuration?</li>
  <li>What if I create a totally custom build configuration -- let's say "TestFlight" -- which certificate should I use?</li>
  <li>Is it possible to use the development certificate with an adhoc release (inside a circle of beta-testers)?</li>
  </ul>