Vydia / react-native-background-upload

Upload files in your React Native app even while it's backgrounded. Supports Android and iOS, including camera roll assets.
MIT License
730 stars 333 forks source link

videos restarts uploading after coming back to forground from background #297

Open ParthNandaniya opened 2 years ago

ParthNandaniya commented 2 years ago

I have recently ejected from expo to use this background upload feature. i have followed all the steps to setup, i don't quite understand of adding Header Search Path in VydiaRNFileUploader(can someone explain more). i have tried to upload video many times, in backrgound it's just stops uploading and when you comes back to forground it restarts uploading from 0%.

1) i wonder app sleeps after 30sec in both OS, if that so it doesn't help to have background upload, if that's not the case then this is an issue to be fix. 2) after going into background all events are not firing even when there is some error occuered or media succesfully uploded. 3) it doesn't work when you lock your device(while app still in background) and open app again, it restarts it.

can someone please resolve this issue, it seems it's not working as expected. it's working only when app is in forground

version: ^6.5.1

if there is any other library to upload files in background while lock screen, please suggest ?

AlkanV commented 2 years ago

any update on this ?