On one specific device, one specific version of our iOS app can't send any URL requests over cellular data using NSURLSession or NSURLConnection. It does not work when installed from the App Store but it does work when installed locally with Xcode. Changing the iOS settings or restarting iOS doesn't help (cellular data is enabled for the app). Also, URL requests work fine for other apps on the device.
The issue also doesn't occur when:
- we use WiFi instead of cellular data
- we use a slightly different app version with no changes regarding the API and networking
The following error occurs which just means that there is no internet connection, e.g. due to the iOS settings or a lack of connectivity:
Error Domain=NSURLErrorDomain Code=-1009
NSURLErrorNotConnectedToInternet
Device info:
iPhone 6
iOS 10.3.2
Any help will be appreciated.