Wheras on AnkiDroid the id of the div containing the card content is “content” but it is still a direct child of the body. Are there structural changes on iOS (I don’t have a device to check on)?
Is there any way to emulate iOS Anki for debugging purposes? There seems to be something not working with one of my addons (Flexible cloze) on iOS and it’s kind of tricky to debug without some way to test.
Maybe addon is a bit of a misnomer, Flexible cloze is just a cloze template with some javascript functionality, so that should be possible to get to work on iOS as well.
Ok, thanks, since I “have you on the line”, a couple of follow up questions:
As I know nothing of iOS development this may be barking up the wrong tree but could you share with what widget/qui framework you implemented the reviewer card view? I need to debug how my js is interpreted by the webview or equivalent so knowing which engine is used would be helpful.
Is {{Text}} is implemented in AnkiMobile for cloze type notes? On desktop Anki and AnkiDroid it will insert the entire note in original format regardless of which cloze ordinal is “active”, i.e. something like this for cloze 1 and the same for 2 and 3: Question 1: {{c1::Answer 1}}
Question 2: {{c2::Answer 2}}
Question 3: {{c3::Answer 3}}
The card content is displayed with a standard iOS webview (ie, the same rendering Safari would have). The simplest method of debugging would be to wrap your JS code in a try/catch block, and alert or write the caught error into the DOM.
Card templates are rendered the same way on both platforms.