Skip to content

Media is not synced on DO_SYNC intent if AnkiDroid was not already opened/running normally #20947

@AuroraWright

Description

@AuroraWright

Checked for duplicates?

  • This issue is not a duplicate

Does it also happen in the desktop version?

  • This bug does not occur in the latest version of Anki Desktop

What are the steps to reproduce this bug?

I tried to implement the syncing intent in ankiconnect android: AuroraWright/AnkiconnectAndroid@c945a97#diff-95aff13f68d81976f8f978e9e78130e08a093827b82969ab022575e4b48bb56aR145-R154

It mostly seems to work, syncing the cards always occurs (if within the 5 minutes limit). However, media syncing only occurs if AnkiDroid was already open in the background before this runs, and only once. If AnkiDroid is closed, media is never synced.

Expected behaviour

Media should be synced at the same time as the collection

Debug info

AnkiDroid Version = 2.23.3 (9001068fd4819c6fb66cb8239e7166868ab47859)  
Backend Version = 0.1.62-anki25.09.2 (25.09.2 3890e12c9e48c028c3f12aa58cb64bd9f8895e30)  
Android Version = 16 (SDK 36)  
ProductFlavor = play  
Device Info = OnePlus | OnePlus | OP6190L1 | OPD2415 | OPD2415 | qcom  
Webview User Agent = Mozilla/5.0 (Linux; Android 16; OPD2415 Build/BP4A.251205.006; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/147.0.7727.101 Safari/537.36  
ACRA UUID = ee5d8d91-bb06-4fc8-b956-f3fadcca0a3f  
FSRS = 5.1.0 (Enabled: true)  
Crash Reports Enabled = true

(Optional) Anything else you want to share?

No response

Research

  • I have checked the manual and the FAQ and could not find a solution to my issue
  • (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

Metadata

Metadata

Assignees

Type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions