Diagnostic step 1
Move resume handling fully to native iOS: implement NSURLSession background configuration with native delegates that persist resumeData to file storage immediately on task completion/failure.
Generated Oct 12, 2026, 10:57:58 PM
Move resume handling fully to native iOS: implement NSURLSession background configuration with native delegates that persist resumeData to file storage immediately on task completion/failure.
Ensure native delegate code runs standalone from RN JS (no reliance on bridge) so resumeData is saved even if JS is suspended. Add logs to verify delegate invoked during handoff.
Test handoff scenarios with a minimal native app reproducer to confirm iOS behavior, then mirror the native flow in RN bridge code.
On server, support resumable uploads that accept a client-supplied upload id and offset; use that as secondary protection if client resumeData is lost.
If native changes are not possible, warn users to avoid switching networks during large uploads and detect network-change events to pause uploads gracefully and retry resume after stabilizing.