Skip to content
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

Network Download File Progress Problem #206

Closed
gelinger777 opened this issue Nov 28, 2013 · 13 comments
Closed

Network Download File Progress Problem #206

gelinger777 opened this issue Nov 28, 2013 · 13 comments
Assignees

Comments

@gelinger777
Copy link

Hi All, I am raising this issue, because it's very fatal and vital for any App Developer.
Problem is Following. When there is bigger file to download from server, we have a NEED , or I would say a Requirement to show the progress of download to the user for usability purposes. We have tries to find a solution by touching and getting the size of dinamic file

filename.extention.rhodownload

But the problem is on Rhosimulator is working, but on iOS happens following. what was obtained first time with Network.FileSize on next call stays, so somehow the same value stays. That's the problem that we cannot use this approach. It's a NEED to have a small callback or a call where from we can get the actual status of the download.
Can we put this in your timeline?

@ghost ghost assigned alex-epifanoff Nov 29, 2013
@genywind
Copy link
Contributor

We can try to fix it in 1-2 weeks. Simple solution is to flush file while download it from server

@gelinger777
Copy link
Author

Simple solution is to flush file while download it from server?? what you mean?

@genywind
Copy link
Contributor

We can do it in native code, so RhoFile.FileSize will return actual values

@gelinger777
Copy link
Author

if you can fix that , then please do it.

@gelinger777
Copy link
Author

@genywind are you sure also cached size would be reflected?

@gelinger777
Copy link
Author

@genywind I see some stuff was done in the curl in master branch.could you please give some explanation?

@gelinger777
Copy link
Author

Hi,
Could you update on this issue?

@alex-epifanoff
Copy link
Collaborator

Hi,

please try to test it with branch https://github.com/rhomobile/rhodes/tree/net_flushOnPull and provide feedback if it works for you.

@gelinger777
Copy link
Author

Could you please provide a brief understanding of what is changed and how it is supposed to work? I mean the File.Size or Network.FileSize will now reflect actual size of downloaded part? I cannot test out untill I will not understand how to get the progress of the download. I am not so advanced to understand it from the code changeset. So please advise how to test, and I will do.
Best regards

@alex-epifanoff
Copy link
Collaborator

@gelinger777 Sorry for the such late answer. Rhomobile is now developed by Tau Technologies and we are working on resolution of many issues and doing our best to respond to platform users feedback. Yes, the date would be immediately written to storage so file size will reflect actual size of data received.
We could also implement a callback mechanizm to notify the app when portion of data was received - if you are still interested.

@gelinger777
Copy link
Author

Good that you took it back over. :) A good implementation of Download with callback mechanism to show progress and re-download when network is down or when connection is broken would be a good feature to have .

@alex-epifanoff
Copy link
Collaborator

We have this one in the backlog. As we are providing paid support, requests from paid customers have higher priority than from community.
For support options you may emails us to [email protected]
For community support please register at forums.tau-technologies.com

@alex-epifanoff
Copy link
Collaborator

@gelinger777 please see
#951

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants