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

Identify Download Error Reason #41

Open
UlyssesAlves opened this issue Nov 2, 2017 · 2 comments
Open

Identify Download Error Reason #41

UlyssesAlves opened this issue Nov 2, 2017 · 2 comments

Comments

@UlyssesAlves
Copy link

UlyssesAlves commented Nov 2, 2017

Is there any means by which I could check a download failure reason? For example, Apache Cordova's official FileTransfer plugin has a FileTransferError which says us if the error was because of a network connection failure or because the file was not found.

I need this information because sometimes the network info plugin is giving wrong information about the network status. Specifically, it says the current network type is "wi-fi" for a short period after the device has been disconnected. That is, it looks like to be a delay before the network info plugin to change from "wi-fi" to "none" after the device has been disconnected.

Agreed, I can always set a timeout in javascript before I check the network status, but I just don't feel this would be the most appropriate solution for this issue, and I think an "download failure reason" info would be very great.

@gkimpson
Copy link

which version of cordova are you using? This plugin doesn't seem to have much support :(

@UlyssesAlves
Copy link
Author

@gkimpson I don't know which Cordova version my project is using.

I've decided to install this plugin in my project because Apache Cordova's official FileTransfer plugin didn't work on iOS, but I couldn't use neither one alone, so I had to use both plugins so that Apache Cordova's official FileTransfer plugin is used when the app runs on android and cordova-plugin-background-download when the app runs on iOS.

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

2 participants