-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
iCloud sync not working #271
Comments
@dive since you worked mostly on this feature perhaps you have an idea where best to start debugging? |
After restart the app, the empty lines disappeared and nothing shows up even I click the sync button. |
Not working at all for me. iPhone 11 Pro Max, iOS 14. Can't use dropbox because it's blocked by corporate firewall. Suppose I can try setting up WebDAV on one of my Raspberry Pis. |
@webframp, sure. I will take a look. So far, I see that the release version on AppStore does not create a proper directory in iCloud for some reason. Local builds and the last version from iTunes Connect work fine. Will investigate. |
Okay, there is definitely a problem with the initial sync but it works in general. @chuxubank, @stevenbuehler, can you help us and confirm that
As the result, there will be MobileOrg directory in the iCloud storage. The easiest way to check is to open Files application on your device, go to "iCloud Drive" directory, open "MobileOrg" and check that all expected P.S. @webframp, it seems that I forgot to update the documentation about iCloud sync on the user side 🤦 Thanks! |
@dive Thanks for your help and hard work! Seemed that the iOS MobileOrg app do not download the file even if I click the sync button. |
@chuxubank, thank you! I see the problem on the iOS side. MobileOrg has to force iCloud Drive to sync all the files within the "MobileOrg" directory, but it is not the case on your screenshot from iOS (these cloud icons on the right-side of the list). It seems that I am able to reproduce it locally as well. Perhaps, something has changed in the iCloud logic or I missed something in the implementation. Anyway, I will try to debug it and prepare a fix. Meanwhile, you can try to download all the files manually (you have to press the cloud icon for each of the files). This will resolve the problem and from this point it has to work as expected. It is crazy, I know 😞 , but there is no button "Sync the folder" in the Files application. |
You are right, I have to download ALL the files manually, and it works now! |
@dive I can add an update for the docs site today. |
Just adds basic docs to help users get started. These can be improved after fixing the bug mentioned in: MobileOrg/mobileorg#271
Can confirm I'm seeing the same behavior. Works locally when I test, but the released version has the bug. |
The App Store version on my 11 Max Pro created the folder in iCloud after I set up something on the phone, but it did not sync the files in the folder afterward. For the moment I’m just using Dropbox, but the fewer apps I have to deal with the better.
|
So, I started the sync from the app, which is apparently bad? I tried deleting the folder, and doing However, nothing at all shows up in the app. When I hit Here's the weird thing: if I create a capture, and then sync, the capture will disappear forever from the mobile app. But a new file will show up in the iCloud folder, named Anyway, hope that helps… any help appreciated! |
Update: after reading #275, I deleted all the mobileorg.org files in the iCloud folder (in Finder: they were not showing up in dired 🤷), and now when I create a new capture, they end up in the same |
MobileOrg on iPhone will create a fresh capture file called mobileorg.org every time a capture or edit is pushed (pushing with neither new change won't do anything ). iCloud will regard this new file with the same name as a conflict and create a suffixed version called mobileorg.org(1) only on the receiving end. A second capture or edit with a push from iPhone will delete the conflicted file and the new one will appear as unconflicted at both ends. A quick fix is to call a hook after (org-mobile-pull) to delete 'org-capture-file. You still have to make two edits/captures and with a corresponding refresh for each to get rid of the conflict at the pc end though. Silly I know but it's to do with this issue : https://developer.apple.com/library/archive/technotes/tn2336/_index.html |
Oh also - when 'org-mobile-push creates a fresh set of staging files at the iPhone end - for some reason I don't yet know - checksum.dat is the only file that won't download to the phone - as indicated by the cloud down arrow icon. Without tapping on this in the file viewer MobileOrg wont startup . |
Hey @Borklex thanks for the feedback. I'll look into this issue |
Reported by a user in https://gitter.im/MobileOrg/Lobby
Setup for iCloud sync should only be: Configure iCloud Sync in the mobile app, Initiate a sync to create the iCloud Drive folder, then configure emacs org-mobile-directory value to point to the path in your ~/Library/Mobile Documents folder
However when attempted a file name does not show in Outlines tab, but there is an empty line shown with an > indicator
And with "View item as a Document" there's just a (null) headline.
The text was updated successfully, but these errors were encountered: