You need to run a distribution version of your app, e.g. built against a distribution provisioning profile, one of Ad Hoc/Enterprise/AppStore. Make sure the profile has a production push notification entitlement.
You can check this with
codesign -d --entitlements - pathTo.app
look for
<key>aps-environment</key>
<string>production</string>