URLSession return NSURLErrorNotConnectedToInternet on 4G network

Hi, I have an app that has been online for a long time, but a very small number of users will respond with "-1009, the internet connection appears to be offline" error, but most users are normal, which may indicate that it is a device problem. The user's network uses 4G, and the user indicates that it is normal to connect to other apps.

In my opinion, if my App uses URLSession to get this Error, other apps should also get it, and all apps cannot make network requests, but it is not.

Currently I always ask users to restart the network or use wifi, but this may not solve this problem. Maybe the device has other network settings that can cause this problem? (The user did not use the flight mode)

Anyone know any solutions or know this problem?

Answered by ForumsContributor in
Accepted Answer

A common cause of this problem is that the user has disable WWAN access for the app. You do this using Settings > Cellular Data (but be aware that iPhones sold in China have a different UI for this).

Are you in touch with a specific user having this problem? If so:

  • You could ask them to check Settings > Cellular Data.

  • You could send them a development build that uses CTCellularData to check for this explicitly.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

URLSession return NSURLErrorNotConnectedToInternet on 4G network
 
 
Q