I'm undertaking an effort to add mobile support to my questionnaire plugin (see CONTRIB-6222), and documenting the efforts as I go. I am using all of the developer documentation, but I have and will run into questions, so I'm going to ask them here. Hopefully this effort will help make it easier for others to do the same.
I have some questions, that are based on trying to understand the mechanics of what I am doing... I'm using the quiz module as my example, as it seems to do similar thing in the mobile app that I would like the questionnaire to do. When I look at a quiz in the mobile app, I see a screen that shows me something like the attached image:
What service provides that screen? It looks like a formatted version of the standard quiz view screen, but what makes that happen? If I do the same for an unsupported plugin (e.g. Feedback), I just get a screen telling me that it is unsupported. What "unlocks" a plugin to make this display happen? Nothing in the 'classes/external.php' file seems to provide display information. Is it the existence of the 'view_quiz' function in the mod_quiz_external class?
If there is a document that better explains this, you can just point me to that.
Next, part of the process requires me to create a Moodle Mobile Plugin. The example given is for the certificate module. There are a number of javascript files that get created in a structure and then zipped up into the 'mobile' subdirectory (https://github.com/jleyva/moodle-mod_certificate/tree/CONTRIB-6313/mobile). But the actual files that are in this zip file are not contained within the repo. Obviously, we would want to keep these files somewhere intact as well. What is the convention for keeping these files with the repo?
Thanks in advance.