react-native-background-upload
react-native-background-upload copied to clipboard
Background upload not working in ios
HiWe are trying to use the latest version of react-native-background-upload and does not upload the files while the app is in background on iOS 14.0 .
Same here. We updated to the latest version and it's not working for us.
Hello There,
Is this still an issue?
Or was fixed on version 6.5.0?
Can we please get an update on this? It's triggering 'cancelled' but the body of the error is empty
@Vydia
We used version 6.2.0 for a while without issues... Is this an issue with recent versions of iOS or with the package itself?.
We are rolling back to 6.2.0, 🤞
@FaggioniHQ did it work with version 6.2.0 for iOS 14? It is not working for us with the current version for sure
I had this issue and it was caused by this warning:
CFURLCopyResourcePropertyForKey failed because it was passed a URL which has no scheme
Basically you need to make sure you pass in a file URL with file://
at the start or it will fail to load the file and simply upload 0 bytes.
The call to upload should fail if it just prints the error in the iOS console (not the Javascript one) and continues with 0 bytes:
Failed to read file Error Domain=NSCocoaErrorDomain Code=256 "The file “b1c53af0-1975-4f39-91f0-94a15970b3dc.jpg” couldn’t be opened."