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

Android stops uploading and progress halts

Open watadarkstar opened this issue 6 years ago • 6 comments

I don't get any error or exception or crash but the progress just halts:

upload started
helpers.js:179 progress {progress: 0, id: "33614308-5fe2-4c0d-a7ba-684a6bf0c773"}
helpers.js:179 progress {progress: 16, id: "33614308-5fe2-4c0d-a7ba-684a6bf0c773"}
helpers.js:179 progress {progress: 22, id: "33614308-5fe2-4c0d-a7ba-684a6bf0c773"}
helpers.js:179 progress {progress: 29, id: "33614308-5fe2-4c0d-a7ba-684a6bf0c773"}
helpers.js:179 progress {progress: 35, id: "33614308-5fe2-4c0d-a7ba-684a6bf0c773"}

Using: "react-native-background-upload": "^5.0.0", "react-native": "0.57.0",

watadarkstar avatar Oct 10 '18 18:10 watadarkstar

Hi @watadarkstar thanks for the report. Would you mind providing any additional information such as the frequency of the issue, if it always halts at the same progress %, is it android-only or iOS also, what are the conditions of the network connection of the device, is there any chance the backend server is having issues, how long did you wait to see if it would resume eventually?

TSMMark avatar Oct 10 '18 18:10 TSMMark

@TSMMark I actually just tried "react-native-background-upload": "4.4.0", and have not seen this issue again. Downgrading from 5.

Honestly, its pretty unpredictable. It sometimes halts at 0% sometimes it gets to 37% and sometimes 67%.

P.S. Thanks for the quick response you rock!

watadarkstar avatar Oct 10 '18 18:10 watadarkstar

@TSMMark Furthermore, its an android only problem. Happens on a few devices:

samsung SM-G610M, OS Level 23 asus ASUS_X00ID, OS Level 25

those are the ones I captured.

watadarkstar avatar Oct 10 '18 18:10 watadarkstar

I also got this problem with Android (Huawei P9, Android 7.0, react-native: 0.47) but worked on iOS. I also downgraded to 4.4.0. Seems to be more stable.

ahaus avatar Oct 22 '18 20:10 ahaus

@StevePotter this is a real issue, making use of this library unreliable to say the least :/. Have you looked at this issue?

sraka1 avatar Jan 09 '19 16:01 sraka1

@sraka1 Sorry you're having issues. Would you be able to reproduce it consistently in a fork of the example app? https://github.com/Vydia/ReactNativeBackgroundUploadExample Otherwise, it sounds like 4.4.0 has worked for a few people and you may have success there.

TSMMark avatar Jan 11 '19 01:01 TSMMark