Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.8.2, 3.9
-
MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
MDL-68294-master -
Description
We need to let site admins know that there are some limits/restrictions that may apply to the app (if they have enabled it).
The overall idea will be the following:
- In the site administration section "Mobile app" among the different options we will include a new one:
"Your Moodle app subscription" - In this new page, plan information for the current site will be retrieved from apps.moodle.com and displayed to the site admin:
- Current plan
- Different limits/restrictions applied
- Warning if some Moodle features are configured but are not supported by the current plan
- Warning if the site reached the maximum number of allower user devices receiving notifications
- Detailed information about Push notifications processed in the current month (or including previous months with graphs if the plan is a paid plan like pro or premium)
- Links to the Moodle Apps portal for registering / purchasing a paid plan.
In order to do that we'll need to call a new WS that will be available in the Moodle Apps Portal (apps.moodle.com) passing as parameter the following information:
- The current siteurl ($CFG->wwwroot)
- Moodle app ids (Android and iOS) to detect custom/branded apps
- A way to authenticate/validate the request (we will send the Airnotifier Access Key, the $CFG->siteidentifier and/or registration token) so the apps portal can choose how to validate that request comes from a valid site
- Once the WS request is validated, all the necessary information for printing the page will be returned. If the site is not yet registered, we will display information about how to register for a free plan at least
Attachments
Issue Links
- caused a regression
-
MDL-69229 Moodle apps subscription page error
-
- Open
-
-
MDL-69230 Undocumented and 'illegal' use of $CFG->disablemobileappsubscription
-
- Open
-
- has to be done before
-
MDL-68756 Add Behat tests for the new Mobile app subscription page
-
- Open
-
- is blocked by
-
MDL-68293 Update Moodle app related language strings to reflect the new restrictions and Moodle apps plans
-
- Closed
-