---
title: "Discussion on \"APNs BadDeviceToken (400): Causes and Fix, Including Sandbox vs Production\" | Hashnode"
description: "Discussion on \"APNs BadDeviceToken (400): Causes and Fix, Including Sandbox vs Production\". Your iOS push fails with 400 and \"reason\": \"BadDeviceToken\". Before you delete that token, check one thing: is it going to the right APNs environment? Most of the time it's a sandbox token sent to pro"
url: "https://hashnode.com/posts/apns-baddevicetoken-400-causes-and-fix-including-sandbox-vs-production/6afa90a30405dcfe9b6661d3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [APNs BadDeviceToken (400): Causes and Fix, Including Sandbox vs Production](https://notifysphere.hashnode.dev/apns-baddevicetoken-400-causes-and-fix-including-sandbox-vs-production?utm_source=hashnode&utm_medium=feed)

Your iOS push fails with 400 and "reason": "BadDeviceToken". Before you delete that token, check one thing: is it going to the right APNs environment? Most of the time it's a sandbox token sent to pro

2d ago · 6 min read · notifysphere.hashnode.dev  
Read the article

-   [#ios](https://hashnode.com/tag/ios)
-   [#push-notifications](https://hashnode.com/tag/push-notifications)

## Written by

[Sandeep Joshi](https://hashnode.com/@notifysphere)

@notifysphere · Kota, Rajasthan, India

  
[View profile](https://hashnode.com/@notifysphere)

Mobile app developer, 12+ years. CTO of notifySphere: push, WhatsApp API and deep linking in one SDK.

Mobile app developer with 12+ years of experience, building notifySphere from Kota, India: push notifications, WhatsApp Business API and deep linking in one SDK for React Native and Flutter. I write practical guides on fixing mobile messaging problems. https://notifysphere.net

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
