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

Upload does not fail in iOS, why?

Open Zabi-Progton opened this issue 6 years ago • 1 comments

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???

Zabi-Progton avatar Aug 30 '19 07:08 Zabi-Progton

also interested

pribeh avatar Nov 16 '19 16:11 pribeh