When enabling push notifications for an app id it must be enabled both for development and for production.
However the entitlements file only contains a "development" value for the APS key, not both a "development" and a "production" value:
If a production archive is made and then the entitlement's file within the .ipa examined it contains the "development" value for the apn key, not a value of "production". However if this archive is then exported for an ad-hoc distribution, then the entitlements file within the resulting .ipa is still also "development". Why is that?