--- title: "iOS: APNS connection closed error for push notifications" slug: "ios-push-error-apns-connection-is-closed" updated: 2026-06-09T23:00:33Z published: 2026-06-09T23:00:33Z canonical: "docs.xtremepush.com/ios-push-error-apns-connection-is-closed" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.xtremepush.com/llms.txt > Use this file to discover all available pages before exploring further. # iOS: APNS connection closed error for push notifications Gateway issues for development sandbox builds > APNS connection is closed. We cannot count the exact number of delivered pushes. This usually happens when testing an ad-hoc/enterprise build of the iOS App to test if notifications are working. The most likely cause is that your notification was sent via the wrong gateway due to a misconfiguration. Apple has 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 > Apps & sites >** click on the matching iOS app **> Push Settings**. From this page, your iOS cert can be uploaded/re-uploaded as appropriate. For help on generating iOS certificates, see [iOS push notifications](/documentation/docs/ios-push-notifications).