iOS · Cellular Data Is Not Allowed
iOS Error Code -1020
The app is not allowed to use cellular data.
Quick answer
The app is not allowed to use cellular data.
| Code | -1020 |
| Product | iOS |
| Company / origin | Apple · United States |
| Category | Mobile Platforms |
| Platform / versions | iOS 15 and later · NSURLErrorDomain |
| Severity | warning |
| Official source | Apple Developer: NSURLErrorDomain ↗ |
| Last verified | 2026-11-08 |
What does iOS error -1020 mean?
NSURLErrorDataNotAllowed (-1020) means iOS blocked the request because the app is configured not to use cellular data, or a device policy restricts it.
Common causes
- Cellular data is disabled for the app in Settings.
- A device management profile restricts cellular data.
- The app explicitly requests a Wi-Fi-only connection.
How to fix it
- Step 1
Enable cellular data for the app in Settings, if appropriate.
- Step 2
Check MDM or Screen Time restrictions.
- Step 3
Retry on Wi-Fi or change the app's network policy.
When to escalate
Before you escalate: If an iOS URL error persists on Wi-Fi and cellular, after restarting the app and the device, capture the code, the URL, the time, and the Console log for the app, then contact the app developer or Apple Support.
Related codes
| Code | Name | What it means |
|---|---|---|
-1001 | The Request Timed Out | The request did not complete before the timeout. |
-1003 | Cannot Find Host | The hostname could not be resolved. |
-1004 | Cannot Connect to Host | The host was found, but the connection could not be established. |
-1005 | The Network Connection Was Lost | The connection was established but then dropped. |
-1006 | Cannot Find Host | The DNS lookup for the host failed. |
Source & verification
This page was checked against Apple Developer: NSURLErrorDomain on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with Apple. Always confirm destructive or security-sensitive steps with the official documentation.