Menu

Delivery failures

The delivery log records a reason for every push that didn't reach Apple's "accepted". Pushwren retries the ones worth retrying and stops sending to tokens Apple says are dead.

Apple's reasons

BadDeviceToken HTTP 400

Token not valid. The token belongs to the other APNs environment, or it isn't a real device token.

Fix: Check that the build's provisioning profile matches the environment the device registered with. Reinstalling the app registers a fresh token.

DeviceTokenNotForTopic HTTP 400

Token belongs to another app. This token was issued to a different app, not your app's bundle ID.

Fix: Make sure the app registering this device has the bundle ID your app's bundle ID and uses this app's publishable key.

BadTopic HTTP 400

Topic not accepted. Apple didn't accept the bundle ID Pushwren sent as the push's topic.

Fix: Check the app's bundle ID in Pushwren. If it's right, this is a Pushwren bug: contact support.

TopicDisallowed HTTP 400

Key not allowed for this app. Your APNs key is limited to specific apps, and your app's bundle ID isn't one of them.

Fix: Upload a key that covers your app's bundle ID, or edit the key on developer.apple.com to include it. Sends to this environment are stopped until then.

BadExpirationDate HTTP 400

Expiration not accepted. Apple didn't accept the push's expiration time.

Fix: Send with an expiration in the future, or none. If you used the friendly fields, contact support.

BadPriority HTTP 400

Priority not accepted. Apple didn't accept the push's priority.

Fix: Use priority 10, 5 or 1. If you used the friendly fields, contact support.

PayloadEmpty HTTP 400

Empty payload. Apple received a push with nothing in it.

Fix: Add an alert, badge, sound or data. If you used the friendly fields, contact support.

ChannelNotRegistered HTTP 400

Broadcast channel not found. Apple has no such broadcast channel for this app in this environment: it was deleted, or it belongs to another app or environment.

Fix: Create the broadcast key again, and have the app look up its channel before it starts the Live Activity.

BroadcastFeatureNotEnabled HTTP 400

Broadcast not enabled. The app's App ID doesn't have Apple's Broadcast capability for Live Activities, so Apple refused the channel.

Fix: Turn on Broadcast for the App ID (Xcode: Signing & Capabilities → Push Notifications, or developer.apple.com under Identifiers), then try again.

FeatureNotEnabled HTTP 400

Broadcast not enabled. The app's App ID doesn't have Apple's Broadcast capability for Live Activities, so Apple refused the channel.

Fix: Turn on Broadcast for the App ID (Xcode: Signing & Capabilities → Push Notifications, or developer.apple.com under Identifiers), then try again.

CannotCreateChannelConfig HTTP 400

Broadcast channel limit reached. Apple allows 10,000 broadcast channels per app in each environment, and this app has reached the limit.

Fix: Delete broadcast keys you no longer use, then try again.

MissingChannelId HTTP 400

Broadcast channel missing. Apple received a broadcast without a channel ID.

Fix: This is a Pushwren bug: contact support.

BadChannelId HTTP 400

Broadcast channel ID not valid. Apple didn't accept the broadcast channel ID.

Fix: Create the broadcast key again. If it keeps happening, contact support.

BadRequestParams HTTP 400

Channel settings not accepted. Apple didn't accept the settings Pushwren sent to create a broadcast channel.

Fix: This is a Pushwren bug: contact support.

MissingPushType HTTP 400

Push type missing. Apple received a push without its push type.

Fix: This is a Pushwren bug: contact support.

InvalidPushType HTTP 400

Push type not accepted. Apple didn't accept the push type Pushwren sent.

Fix: This is a Pushwren bug: contact support.

ExpiredProviderToken HTTP 403

Signing token expired. Pushwren's signing token for your key had expired when Apple checked it.

Fix: Nothing to do: Pushwren signs a fresh token and retries.

InvalidProviderToken HTTP 403

Key rejected. Apple didn't accept your APNs key: the .p8, Key ID or Team ID is wrong, or the key was revoked.

Fix: Check the Key ID and Team ID, then upload the key again. The Key ID is on developer.apple.com under Certificates, Identifiers & Profiles → Keys. The Team ID is under Membership details.

BadEnvironmentKeyIdInToken HTTP 403

Key not enabled for this environment. Your APNs key isn't enabled for this environment.

Fix: Apple can't change a key's environment. Make a key for this environment (or Sandbox & Production) on developer.apple.com and upload it. Sends to this environment are stopped until then.

BadEnvironmentKeyInToken HTTP 403

Key not enabled for this environment. Your APNs key isn't enabled for this environment.

Fix: Apple can't change a key's environment. Make a key for this environment (or Sandbox & Production) on developer.apple.com and upload it. Sends to this environment are stopped until then.

UnrelatedKeyIdInToken HTTP 403

Connection bound to another key. The connection to Apple was set up for a different key.

Fix: Nothing to do: Pushwren opens a new connection and retries.

Unregistered HTTP 410

App removed or notifications off. The app was deleted from this device, or its token was replaced.

Fix: Nothing to do: Pushwren stops sending to this token. The device registers again if the app is reinstalled.

ExpiredToken HTTP 410

Token expired. This device's token has expired.

Fix: Nothing to do: Pushwren stops sending to it. The app registers a new token the next time it opens.

PayloadTooLarge HTTP 413

Payload too large. The push was larger than the 4 KB Apple accepts.

Fix: Send less custom data. Pushwren checks the size when it accepts a send, so this should not happen: contact support.

TooManyRequests HTTP 429

Too many pushes to this device. Apple is limiting pushes to this one device because it received many in a short time.

Fix: Send to this device less often. Apple lifts the limit on its own.

TooManyProviderTokenUpdates HTTP 429

Signing token refreshed too often. Apple saw the signing token for your key change too often.

Fix: Nothing to do: Pushwren keeps the current token and retries later.

InternalServerError HTTP 500

Apple's servers had an error. APNs failed while handling this push.

Fix: Nothing to do: Pushwren retries with backoff.

ServiceUnavailable HTTP 503

Apple's servers were unavailable. APNs was temporarily unavailable.

Fix: Nothing to do: Pushwren retries with backoff.

Shutdown HTTP 503

Apple's server was shutting down. The APNs server handling this push was shutting down.

Fix: Nothing to do: Pushwren retries on a new connection.

Timeout No answer

Apple didn't answer in time. APNs took too long to answer.

Fix: Nothing to do: Pushwren retries with backoff.

Pushwren's reasons

NoKeyForEnvironment

No key for this environment. The app has no APNs key for this device's environment.

Fix: Upload a key in Settings: APNs. A key enabled for both environments covers every device.

KeyInvalid

Key stopped working. Apple rejected the app's APNs key earlier in this send, so Pushwren stopped sending with it.

Fix: See Settings: APNs for the reason, and upload a working key.

ApnsUnreachable

Couldn't reach Apple for an hour. Some pushes in this send kept failing to reach APNs for an hour, so Pushwren stopped trying.

Fix: Check status.pushwren.com and Apple Developer System Status, then send again.

EnqueueFailed

Send wasn't queued. Pushwren accepted the send but could not put it on its queue.

Fix: Retry the request with the same Idempotency-Key: Pushwren queues it again without sending twice.

ConnectionError

Couldn't reach Apple. The connection to APNs failed before Apple answered.

Fix: Nothing to do: Pushwren retries on a new connection.

AppGone

App deleted. The app was deleted before this send went out.

Fix: Nothing to do: a deleted app sends nothing.

SendsPaused

Sending paused. Pushwren paused sending for this app or account while this send was going out, so it stopped.

Fix: Contact support. Once sending resumes, send again: a stopped send does not restart.

PlanLimit

Over a plan limit when it started. When this send's time came, the account was over a plan limit: this month's Free pushes were used up, or sends were paused for too many active devices.

Fix: See Billing. Send it again once the limit lifts or after you upgrade (on Pro, ask us about a Custom plan).

NoPushToStartToken

No device to start it on. None of the target devices has reported a push-to-start token for this activity type, so the remote start reached no device.

Fix: Remote start needs iOS 17.2 or later. Call enableRemoteStart(for:) with this activity type when the app launches, run the app on the device once, then start the activity again.