react-native-background-upload icon indicating copy to clipboard operation
react-native-background-upload copied to clipboard

Background upload not working in ios

Open Abby9111 opened this issue 3 years ago • 7 comments

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 .

Abby9111 avatar Jun 13 '21 04:06 Abby9111

Same here. We updated to the latest version and it's not working for us.

FaggioniHQ avatar Jul 28 '21 23:07 FaggioniHQ

Hello There,

Is this still an issue?

Or was fixed on version 6.5.0?

miguelfaggioni avatar Sep 15 '21 19:09 miguelfaggioni

Can we please get an update on this? It's triggering 'cancelled' but the body of the error is empty

KidsOnShred avatar Sep 27 '21 08:09 KidsOnShred

@Vydia

joeyfigaro avatar Oct 16 '21 16:10 joeyfigaro

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 avatar Oct 17 '21 01:10 FaggioniHQ

@FaggioniHQ did it work with version 6.2.0 for iOS 14? It is not working for us with the current version for sure

juggernauts avatar Oct 28 '21 16:10 juggernauts

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."

matt-oakes avatar Dec 07 '21 12:12 matt-oakes