ankidroid / ankidroid/Anki-Android

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

Abierto
#20,947 5 comentarios 1 reacción 0 asignados Ver en GitHub
2.23 Needs Triage
Lenguaje dominante
Kotlin
Estrellas
11.8k
Forks
2.9k
Merge medio
2 d 3 h
PR fusionados (30 d)
171

Descripción

### Checked for duplicates?

- [x] This issue is not a duplicate

### Does it also happen in the desktop version?

- [x] 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: https://github.com/AuroraWright/AnkiconnectAndroid/commit/c945a9727890d5d2124c67c444e4991a3565bd84#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

```text
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

- [x] I have checked the [manual](https://ankidroid.org/docs/manual.html) and the [FAQ](https://github.com/ankidroid/Anki-Android/wiki/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](https://docs.ankidroid.org/manual.html#betaTesting))

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.