I am currently using Anki desktop to create cards and then Ankidroid on my phone to go through them at a later time. After I go through them Ankidroid successfully syncs (pushes) to Ankiweb. I know this because when I check Ankiweb after syncing, it is correctly in the latest state that my phone pushed.
But when I then open Anki desktop and sync (automatically or manual), despite containing an older state, it overwrites Ankiweb with the older state and I lose all the progress I made on my phone. Syncing from my phone then pulls the older state onto my phone.
To undo this, I have to:
- Restore from a backup on my phone
- Sync on my phone and choose to keep Ankidroid (overwrite Ankiweb)
- Sync on Anki desktop and choose to keep Ankiweb (overwrite Anki desktop)
This has been going on daily for months. I have reinstalled Anki desktop and Ankidroid (even though the issue is clearly with Anki desktop) yet the problem remains. Would really appreciate some help as it is highly frustrating.
That sounds like a sync conflict.
- Do you have good syncing habits? That means you sync when you open the app on a device and when you close/leave the app on that device, every time.
- Do you have any add-ons on desktop that run actions in the background, on-sync, or after-sync?
Itās not that desktop is overwriting any data, but the card is being āupdatedā to the state that matches the most recent change made to the card ā which is not the last review you did. Looking at the the Card Info would tell for sure if this is the issue. See: Scheduling differences between Anki desktop and Android - #4 by Danika_Dakika .
Thanks for your reply. It helped me find the root cause of the problem which was an āAuto-Rebuildā add-on: https://ankiweb.net/shared/info/1879833347
I had auto-sync turned on on both devices but Iām guessing that add-on wrote new state before the auto-sync kicked in.
Uninstalling that solved the issue. I submitted an issue in the addonās Github repo: https://ankiweb.net/shared/info/1879833347