-
Notifications
You must be signed in to change notification settings - Fork 325
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
When offline there is no error message #83
Comments
UPDATED so others don't use old work around. A work around for now:
|
Hi We are suspecting that the uploading return "completed" during offline / network disconnected. Thanks |
react-native exports import { NetInfo } from 'react-native'
NetInfo.isConnected.fetch()
.then()
.done((isConnected) => {
// only upload if isConnected
}) |
from our experience "isConnected" not always return the current status |
@lironsher No I don't think we get a "completed" event when the network is offline. What version are you using of this library? |
I use NetInfo.addEventListener to listen network status. While network status changes to offline, I cancel upload process. |
@watadarkstar that's a heck of a fix. I'd like to submit a feature request for the uploader to be more resilient to connectivity interruptions. Anyone else agree? I just don't want to do the work :) |
😜 haha its dirty and now I'm using |
Sorry if I'm jumping onto the wrong thread here but is there a way to detect when the connection is interrupted and send an error? And then, is there an ability to build an option for the end-user to resume the upload when connection is re-established? |
@pribeh You're in the correct thread, now all you have to do is read the thread 😄 |
@TSMMark thanks! We'll give that a shot. |
Hi I use this package and its great! Except that if the user is offline (no-wifi) it never errors out. :( Am I doing something wrong or is this a known issue?
My code:
The text was updated successfully, but these errors were encountered: