-
Improvement
-
Resolution: Fixed
-
Major
-
4.2.0
-
-
MOODLE_402_STABLE
-
MOODLE_403_STABLE
-
Moodle Apps - 2023 Sprint i3.2
Enrolment plugins are not currently supported at all in the mobile app. A quick workaround that could work for some plugins is just to allow them to indicate whether they want to be supported via the "Enrol me" button in the app.
We did a proof of concept with the enrol_apply plugin (see video). As you can see, in this case, an external browser will be launched to allow the user to complete the process.
As we did for Blocks, we can just support a new option in db/mobile.php for a new course enrolments delegate to indicate this.
Please, notice also that we should be able to also detect auto-enrolment plugins to avoid displaying the padlock (see linked issue).
The issue is divided in two parts:
- Create the enrolment delegate and migrate the current self, guest, fee and paypal handlers.
- Create the siteplugin structure so 3rd party plugins can decide:
- The action to take when enrolling: self (self), view (guest), browser (paypal, fee...).
- Invalidation of WS calls (if needed)
- Self enrolment function (for self)
- Can access and Validate access function (for view).
- has been marked as being related by
-
MOBILE-4009 Guest access with password support on the app
- Closed
- split to
-
MOBILE-4397 Add support for self and view enrolment plugins on the app
- Closed
- will help resolve
-
MOBILE-4375 Courses incorrectly showing padlock icon even though they aer available to students
- Closed