iOS: APNS connection closed error for push notifications

Gateway issues for development sandbox builds

APNS connection is closed. We cannot count exact number of delivered pushes.

This error usually happens when testing notifications for an ad-hoc/enterprise build of an iOS app. The most likely cause is that your the notification was sent via the wrong gateway due to a misconfiguration.

Apple have two notification gateways: one for sending to dev builds (sandbox) and the other for sending to production builds. To test with a production build you will need to have a production push notification cert uploaded. Navigate to Settings > Channels, select the Push Settings tab and the iOS Push option. Your iOS cert can be uploaded/re-uploaded as appropriate.

For help on generating iOS certificates, see iOS push notifications.

Updated 3 months ago


iOS: APNS connection closed error for push notifications


Gateway issues for development sandbox builds

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.