Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

DeviceCheck.generateToken, Error: com.apple.devicecheck.error 0

Dear Apple Developer Support Team,

We are experiencing a recurring issue with the DeviceCheck API where the following error is being returned:

com.apple.devicecheck.error 0

Upon analyzing our logs, we have noticed that this error occurs significantly more often when users are connected to Wi-Fi networks, compared to mobile networks. This leads us to suspect that there might be a relationship between Wi-Fi configuration and the DeviceCheck service’s ability to generate or validate tokens.

We would like to know:

  1. Is this error code (0) known to be caused by specific types of network behavior or misconfigurations on Wi-Fi networks (e.g., DNS filtering, firewall restrictions, proxy servers)?
  2. Are there any recommended best practices for ensuring reliable DeviceCheck API communication over Wi-Fi networks?

Additionally, could you please clarify what general conditions could trigger this com.apple.devicecheck.error 0? The lack of specific documentation makes debugging this issue difficult from our side.

Any guidance or internal documentation on this error code and its potential causes would be greatly appreciated.

IDE: Xcode 16.3

Looking forward to your support.

Best regards,

Before we go on a wild goose chase about this, can you confirm that the percentage of errors vs . devices on either type of connection is significantly different - and this is not just a matter of mismatched numbers due to possibly significantly more devices being on WiFi networks at any given time than mobile networks?

Dear Apple Developer Support,

We are currently encountering a recurring issue with the DeviceCheck API across multiple devices in our production environment.

The following error is frequently returned:

com.apple.devicecheck.error 0 We would like to ask the following:

  1. What are the possible underlying causes that could lead to this specific error code (0) in the DeviceCheck API?
  2. Is there any known behavior or condition where Wi-Fi network configurations (e.g., DNS filtering, proxy settings, captive portals) could result in this error?
  3. Are there known timeouts, connectivity expectations, or TLS-level requirements that the DeviceCheck API enforces which could fail silently under certain network conditions?
  4. Is this error ever triggered locally (e.g., client library-level issues) or is it always from a failed communication with Apple’s servers?

Any technical clarification, documentation, or internal insight into this error code would be greatly appreciated. This would help us significantly narrow down root causes and better support our users.

DeviceCheck.generateToken, Error: com.apple.devicecheck.error 0
 
 
Q