-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Auto Upload on Android does not upload all images automatically due to battery optimization #416
Comments
To understand the problem exactly: Are the images not uploaded directly but later or ignored completely? First, it would be interesting to see if the images are not captured at all or are "lost" later. Can you please activate debug mode and let it run for the next days. As soon as you notice that an image is missing, write down the name of the image. Then either send us the log file together with the name or open it yourself and search for an entry with the name of the image. The entry in the log should look something similar to |
The images will then no longer be uploaded at all. These are completely ignored. I have now activated the debug mode and will report back as soon as images are ignored. |
So, yesterday it happened again. I did not find this file name in the log files. Yesterday I deleted the cache of the app in the hope that it works again. Now the auto upload does not work at all. I have made today over 20 pictures and 2 videos. None of them was uploaded. I have unlocked the Vault several times while I was logged into a Wi-Fi network. I also took a picture today while the Vault was unlocked and the phone was on Wi-Fi. This photo was also ignored by the auto uploader. |
Sorry for the late response and thanks for the log file. Is it possible that you set the |
First of all, thanks for the answer. I just looked. it was set to optimized. I've now set it to unrestricted. I will check the behavior in the next few days. But that would mean that Cryptomator would have to run constantly in the background so that it would know when new images were created? Wouldn't it be better if the app checked which images have been added since the last upload when the auto upload starts? Surely this would be less error-prone? |
No, its just a question of priories, if the app is e.g. Cryptomator doesn't scan always all files in the background but registers an observer to the system which gets notified if a new picture or video was created or modified. During the execution of this observer, we only store the path to the file which is more or less a no op for a smartphone... |
So since I set Cryptomator to unrestricted it seems to be working. I will continue to monitor this and give feedback again in the next few days or weeks. |
Awesome, that means we will request this permission if auto upload gets enabled.
Kind of, Cryptomator isn't always running in the background but it seams that we aren't always allowed to execute the background job if not
Thank you 🙂 |
So, I have been watching the behavior of the app for the last few days/weeks now. Everything seems to be working now. |
Please agree to the following
Summary
Auto Upload on Android does not upload all images automatically
What software is involved?
Volume Type
WebDAV
Steps to Reproduce
Configure Auto Upload so that it uploads all images via WLAN.
The Vault is synchronized via WebDAV with a Nextcloud instance.
Auto Upload is configured to immediately upload images and videos over Wi-Fi only.
The Vault is unlocked when Wi-Fi is enabled and the device is on a Wi-Fi network.
Expected Behavior
All pictures taken with the phone camera are encrypted and uploaded to the Vault.
Actual Behavior
Some days not all images are uploaded. Individual images or image series are ignored. There is no difference between the individual images. All pictures were taken with the internal camera.
This happens every few days. The behavior cannot be reproduced actively. It is not obvious what behavior causes the images not to be uploaded completely.
Reproducibility
Intermittent
Relevant Log Output
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: