I tried the example given in the wiki and it does nothing when I press the button. showAnswer()
works so not all of them are broken.
Is this a bug or I’m I missing something I need to do?
AnkiDroid Version = 2.23.0alpha1 (4a620e654701c42db64b82c29832caea5f4bc0df)
Backend Version = 0.1.60-anki25.07.5 (25.07.5 7172b2d26684c7ef9d10e249bd43dc5bf73ae00c)
Android Version = 13 (SDK 33)
ProductFlavor = full
Device Info = Xiaomi | POCO | mondrian | mondrian_global | 23013PC75G | qcom
Webview User Agent = Mozilla/5.0 (Linux; Android 13; 23013PC75G Build/TKQ1.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/138.0.7204.179 Mobile Safari/537.36
ACRA UUID = b9d03d9a-5af9-4e67-987e-cc15799171e2
FSRS = 4.1.1 (Enabled: true)
Crash Reports Enabled = true
(I tried in v2.22.3 with and without the new reviewer too.)
UPDATE: I figured it out. I didn’t read this part AnkiDroid Javascript API · ankidroid/Anki-Android Wiki · GitHub.
The API must be initialized before use.