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
721 stars 325 forks source link

What if the device restarted or lost internet connection, Does it continue uploading? -- Discussion #280

Open YassinEldeeb opened 2 years ago

YassinEldeeb commented 2 years ago

Firstly sorry for making it an issue but honestly I didn't find answer for that question or even had the chance to test it out using the background upload express example It was always throwing me an Invalid regex error.

What if the device restarted or lost connection during the background uploading, Does it continue as soon as the device have an internet connection again or not 🤔

elleryfamilia commented 2 years ago

Based on my testing, going into Airplane mode for a few minutes does not impact the upload. It uploads once reconnected. However, I did test going on Airplane mode for an extended amount of time (over 30 mins) and the upload failed in those cases.

YassinEldeeb commented 2 years ago

Thank you.