ankidroid / ankidroid/Anki-Android

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

Đang mở
#20,947 5 bình luận 1 reaction 0 người được giao Xem trên GitHub
2.23 Needs Triage
Ngôn ngữ chính
Kotlin
Star
11.8k
Fork
2.9k
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
171

Mô tả

### 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))

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.