Environment
Swift app using URLSession background transfers on iOS 18.
What happens
Large video uploads resume while suspended but duplicate after the app is force-closed and reopened.
What I have tried
Persisted the task identifier and recreated the background session.
I would appreciate advice on how to identify the root cause without risking existing data or configuration.
Verified community troubleshooting
This looks less like a hardware failure and more like a configuration issue.
Likely cause: The app creates a second upload before reconciling tasks restored by the system session.
What I would try: Call getAllTasks when reconnecting, match persisted job identifiers and enqueue only uploads that have no active restored task.
Keep an eye on the relevant logs during the test; they should confirm whether the hypothesis is correct.
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags