forked from wkh237/react-native-fetch-blob
-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
progress
dose no work in iOS becausesetProgress
will call before sendRequest
#96
Labels
Comments
I have to do like this let fetchobj = FetchBlob.fetch(
'GET',
'xxxx'
)
setTimeout(()=>{
fetchobj.progress({ interval: 250},(resive,total)=>{
console.log("progress", resive/total)
})
}, 0)
fetchobj.then((res)=>{
console.log("res", res)
}) |
I'm having the same issue and @MJXin's workaround fixed it. |
Traviskn
added
bug
Something isn't working
help wanted
Extra attention is needed
labels
Jul 11, 2018
I've also had |
I've also had uploadProgress stop working similarly. |
the same problem, but @MJXin's workaround not fixed for me.
RN-Fetch-Blob: v0.10.12 |
hey guys, i fix it in the PR, #155 |
@yurnery |
PR is merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I fetch a file like that:
I can't receive progress because
progress
will be called synchronization withfetch
.In iOS:
fetch
will call :progress
will call:The
fetchBlob
function will async create an request obj.Before the
buildOctetRequest
'sonComplete
is called ,enableProgressReport
has already been called.Caused
enableProgressReport
can't find taskIDThe text was updated successfully, but these errors were encountered: