Just woke up in the morning and confirmed that it doesn’t work without recursive. I’ll test with recursive turned on next.
Fortunately “Get contents of folder” returns only the list of the files and not the contents of the files, that would be an enormous amount of data with my vault. I counted eight seconds for the command to complete with an offloaded vault and it takes roughly the same time with the vault synced back to device. I’ll see in a couple of hours if the syncing problem in Obsidian is mitigated now.
This would allow you to set up your vault to work in certain way on Mobile and another on Desktop, so you wouldn’t have to deal with the manifest.json of certain plugins you don’t need on mobile as you could just not install them …
Well you surly need recursive, or it will just get name of folder, and it’s actually get the contents, you can perform it and check the results popup, switch the button, but unless your vault is big as gigabytes, energy consumption should not bother you.
I did believe you, I just reported what I saw in the morning.
I flipped the recursive switch on and have not seen a single loading screen in Obsidian today! Thank you!
I have the interval at 1 hour and it pauses for the night. I also have roughly the usual amount of battery left as I’m going to sleep and iPhone battery reports Shortcuts having used 4%. So it looks like everything is in order.
170 MB for me; I can see how to find how many notes, probably about 2-3000. I’ve been having this problem for the past few months, and am ready to switch away from Obsidian. I know it’s the fault of iCloud, but still.
I just started a vault,but still have to wait sometimes up to a minute everytime I open Obsidian on my iPhone.
The shortcut-workaround works a little bit, still seeing the waiting-screen, especially if the last download is more than half an hour ago.
I had a similar problem on the version of Obsidian I downloaded from the AppStore, while looking for a solution to the problem I found this thread and saw that there was mention of Obsidian being available on TestFlight, I installed version 1.6.2 (142) and found that the problem was not resolved (although the design has been updated a bit which looks better than before).
After installing the version via TestFlight, I was interested to test the problem with synchronization on it. I attach a video and a couple of additional screenshots regarding information about my vault, also please note that the tests were done in airplane mode, that is, the internet was turned off (I may be wrong, but according to the idea in this mode iClould not upload anything to the server for synchronization, but this is purely my assumption is not confirmed by facts).
p.s. in case of need to provide additional information I will always be glad to help as I would like to find a solution for this problem.
yes, you noticed correctly I had a mistake in that sentence
regarding vault not opening in airplane mode, for me it opens fine and works relatively fine when indexing ends, did you look at the gif that was attached to the thread?
And my main question is what obsidian tries to download if there is no internet, and how does it run this vault without internet?
This isn’t Obsidian downloading anything. iCloud Drive is doing all the downloading here.
The situation described in this thread is that iCloud Drive will remove your local data when it thinks you don’t need a file In order to save local storage space. This is called “eviction”.
Obsidian vaults need all files in them to be downloaded. So if iCloud Drive has evicted any files in a vault, Obsidian needs to download those files before your vault can launch. So, when launching an iCloud Drive-based vault, Obsidian asks iCloud Drive to download all files in the vault.
iCloud Drive should not be able to download those files if you are on airplane mode. So either none of the files in your vault were evicted when you tried to record that video, or somehow iCloud Drive is able to download files even when you are on airplane mode. My bet is on the former.
If none of the files were evicted, why there is “synchronise files” screen for such a long time? Downloading files without internet connection? Really? Here is my old iPad Air2 (wifi, no cellular) in airplane mode (no wifi, no cellular):
Pretty sure Obsidian should not try to sync something if there is no internet connection.
Regardless, I’m guessing that the iCloud Drive screen shows while Obsidian checks to make sure every file in the vault is actually there. The app has no way of knowing if iCloud Drive has decided to evict something or not without checking every item.
I’m not quite sure what you’re talking about if you see that in the video I did two runs.
The first run is at the beginning of the video, the second run happened when the indexing of the first one was over, everything I did on the device was recorded, by the logic you write about, in airplane mode icloud can’t sync(upload/download) anything as it has nowhere to upload it to as the whole device is without internet. And in that case if all data is unchanged why obsidian is trying to download data from iCloud again and he succeeds in doing it judging by the video and starts reindexing all files again
“eviction” - or are you saying this works even in airplane mode? If this is the case could you please refer to some document in the official documentation or iCloud usage policy? as I couldn’t find anything like that
p.s. I made an update to my file, seems like it should be a bit better quality
It seems like you and Valery want explanations and/or justifications for iCloud Drive’s eviction behavior. If we could do that, we wouldn’t have any of these problems! Haha. Apple is very circumspect about how all of this works. There are APIs available for working with evicted files (e.g., for checking if they’re evicted and downloading them back), but that’s about it.
I can’t explain any of the behaviors you’re documenting but they don’t help us solve the root problem regardless.