-
Notifications
You must be signed in to change notification settings - Fork 126
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
Not getting continuous upload progress in iOS #61
Comments
Can you hook into XCode and debug the lines around here? https://github.com/RonRadtke/react-native-blob-util/blob/master/ios/ReactNativeBlobUtilRequest.m#L321 (download) and https://github.com/RonRadtke/react-native-blob-util/blob/master/ios/ReactNativeBlobUtilRequest.m#L436 (upload) Does the download handler work as expected? I have a feeling this code hasn't been updated in a long time and lots of deprecated/outdated functions are in use. I haven't tested this myself, but It looks like the bug shouldn't be hard to spot. |
Hi @cristianoccazinsp , Thanks for the reply. Will have a try and let you know. Thanks |
Hi @cristianoccazinsp , Download progress also works like the same as upload progress. Any solution for this behaviour in iOS ? Thanks |
What happens when you remove .config(.. ? |
Same here, upload progress in iOS will only trigger two times, around 0.9 and then around completion... i do not have .config parameters... |
I have the same problem in iOS. |
The same problem in iOS. |
有解决办法吗 |
Facing this too in iOS / react-native |
@skizzo I would start by checking this
|
First of all, thanks for your quick reply, @filipef101! The
EDIT: When using a placeholder service (in my case, https://placehold.co/1920x1080.png), the progress event is fired multiple times and works correctly. So this is not a bug in the awesome |
Just one more question, may I ask for the reason why the values for |
That's a good question - but in general all events arepassed as string or dict to JS . For the future only strings. But likely the typecast is simply missing. |
@skizzo I am not getting progress in android as well it is coming as 0 and -1 for received and total respectively |
I have the same problem in iOS. have anyone fixed it? |
Hi,
In iOS the upload progress is not continuous whereas in android is getting continuous progress.
Sample code:
Here in
.progress()
, written/ total always return 1 in iOS while uploading but in android value ranges from 0 to 1 thus getting a continuous progress.Versions using:
react-native-blob-util: 0.13.13
react-native: 0.64.0
react: 17.0.1
Android Studio: 4.1 AI-201.8743.12.41.7199119
Xcode: 12.5.1/12E507
In iOS
Screen.Recording.2021-08-30.at.7.30.07.PM.mov
In Android
Screen.Recording.2021-08-30.at.7.32.07.PM.mov
Is there anything that is missing or is it the default behaviour in iOS ?
Thanks.
The text was updated successfully, but these errors were encountered: