-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Stop Uploads When the Device Doesn’t Have an Internet Connection #14364
base: master
Are you sure you want to change the base?
Stop Uploads When the Device Doesn’t Have an Internet Connection #14364
Conversation
4ae3b5e
to
a155284
Compare
fun showConnectionErrorNotification() { | ||
notificationBuilder.run { | ||
setContentTitle(context.getString(R.string.file_upload_worker_error_notification_title)) | ||
setContentText("") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it retry once a network connection is detected?
If so, we can add this info here as text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the FileUploadWorker is triggered for auto-upload, it will run again. However, if it is triggered for manual file upload, it will not. We could indicate this detail, but it might be too much information for the user.
402220c
to
a17ce74
Compare
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
1b6af1b
to
6966ce5
Compare
Problem
When the device lacks an active internet connection or is in airplane mode, the app continues attempting to upload files. This results in numerous “upload failed” notifications appearing repeatedly.
How to Test