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
724 stars 330 forks source link

Upload does not fail in iOS, why? #166

Open Zabi-Progton opened 5 years ago

Zabi-Progton commented 5 years ago

When I turn off the internet and turn it back on the upload resumes and the addListener for 'completed' is still running in the background. And the code continues to execute in that listener in the background which I don't want because I have an HOC that refetches my data and gives a chance to upload again, is there any way to remove that addListener? or to cancel the ongoing upload when the internet is turned off. Also can I not just provide null in cancelUpload(null) to cancel all ongoing uploads???

pribeh commented 4 years ago

also interested