I have an app with IAP which uses a URLSession object to download files from a server. The download part of the code is:
let request = URLRequest(url: fromURL, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: timeoutInterval)
let (data, response) = try await downloadSession.data(for: request)
This code has been working without trouble for over a year with thousands of downloads.
Now I have a user with a new iPhone (iOS 17.3.1) which refuses to download, failing at the above code (judging by the high level logs).
My question is this: What sort of things should we be looking at in order to diagnose this issue?
So far we have done the following:
- He has no general download issue (eg Safari works fine)
- His network access is 'normal' and the problem persists when the network is changed (4G, wifi etc)
- He runs a VPN (Nord) but the problem persists when this is off
- He has no 3rd party AV software
- His phone is not in lockdown mode
Any pointers would be appreciated! NB I have no physical access to his device (yet!)