hgiesel / closet

The Web Framework for Flashcards
https://closetengine.com
GNU General Public License v3.0
65 stars 6 forks source link

Closet is not working in AnkiDroid on certain devices. #73

Closed talenelat-elin closed 3 years ago

talenelat-elin commented 3 years ago

Preface: I'm unsure of the complete extent or cause of the problem

The problem: The clozes and occlusions are not rendered at all, instead the contents of the fields are shown, including the closet notation, like so: image In a functioning card, the contents of the double square brackets should have been replaced by [...] in the front of the card.

How I test it:

  1. Delete all the ankidroid files present from previous installs, if any.
  2. Fresh install of ankidroid from the play store
  3. Import an apkg file of closet cards that I've created (that definitely work on Anki Windows)- LINK
  4. Check the cards

So far, I've tested 6 devices:

  1. Xiaomi Redmi Note 5 Pro - broken
  2. Xiaomi Redmi Note 9 Pro - broken
  3. Xiaomi Redmi Note 7 Pro - broken
  4. Lenovo K9 - Broken
  5. OnePlus 6 - Works
  6. RealMe 2 - Works

I'd appreciate it if people could import the deck and check out the cards on their devices and add to the data.

Cards made in: Anki Windows (x64) 2.1.41 Closet 0.5.3 Tested in: AnkiDroid 2.15.6

hgiesel commented 3 years ago

Thanks for the report.

Please check the Android versions of those individual devices. The support for loading ES modules (which is what Closet needs) was only added with 2.15.

talenelat-elin commented 3 years ago

Thanks for the report.

Please check the Android versions of those individual devices. The support for loading ES modules (which is what Closet needs) was only added with 2.15.

@hgiesel It seems that it's not working in Android versions 9 and below.

Phonestatus
Android Version
Xiaomi Redmi Note 5 Probroken
9 PKQ1.180904.001
Xiaomi Redmi Y2broken9 PKQ1.181203.001
Lenovo K9broken8.1.0
Xiaomi Poco M2
working10 QP1A.190711.020
OnePlus 6working10 (OxygenOS v10.3.11)
Realme 2 Proworking
10 (Realme UI V1.0)
hgiesel commented 3 years ago

@talenelat-elin Thanks a lot for the research! However that also means that it's not actionable for me. It seems like Closet relies on functionality that was introduced with Android 10. However I'll pin the issue for others to see.