Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66775

Add new Mobile setting for forcing a minimum app version to access the site

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Log in into your Moodle site as Admin
      • Go to Site administration > Mobile app > Mobile authentication and set a value like "3.8.0" to the "Minimum app version required " setting
      • Now, open a Terminal/Console and execute the following curl command (replacing the site URL with yours)

        curl 'http://localhost/m/stable_master/lib/ajax/service.php' --data-binary '[\{"index":0,"methodname":"tool_mobile_get_public_config","args":{}}]' | python -m "json.tool"

      • Confirm that:
        • In the command response you see the following: "tool_mobile_minimumversion": "3.8.0"
        • tool_mobile_iosappid is set to 633359593
        • tool_mobile_androidappid is set to com.moodle.moodlemobile
        • tool_mobile_setuplink is set to https://download.moodle.org/mobile
      • Now, reset the "Minimum app version required" setting (leave it empty)
      • Execute again the CURL request
      • Confirm that:
        • In the command response you see the following: "tool_mobile_minimumversion": ""
      Show
      Log in into your Moodle site as Admin Go to Site administration > Mobile app > Mobile authentication and set a value like "3.8.0" to the "Minimum app version required " setting Now, open a Terminal/Console and execute the following curl command (replacing the site URL with yours) curl 'http://localhost/m/stable_master/lib/ajax/service.php' --data-binary ' [\{"index":0,"methodname":"tool_mobile_get_public_config","args":{}}] ' | python -m "json.tool" Confirm that: In the command response you see the following: "tool_mobile_minimumversion": "3.8.0" tool_mobile_iosappid is set to 633359593 tool_mobile_androidappid is set to com.moodle.moodlemobile tool_mobile_setuplink is set to https://download.moodle.org/mobile Now, reset the "Minimum app version required" setting (leave it empty) Execute again the CURL request Confirm that: In the command response you see the following: "tool_mobile_minimumversion": ""
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-66775-master

      Description

      A new setting for allowing a site admin indicates the minimum app version to access the site would be useful in the following scenarios:

      • Encouraging users to upgrade always their Moodle apps
      • Avoid users accessing with very old versions of the app where certain functionalities are not implemented
      • Block app versions with security issues

      Please, note that this new setting will require the Moodle app version 3.8.0 to work, so it won't work for previous app versions

      Apart from the new setting, we'd need to also return the current apps ids and app download page. This is necessary to be able to display an "Upgrade" link in the app that will automatically open "Google Play" or the "App Store"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jleyva Juan Leyva
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Pau Ferrer
              Integrator:
              Sara Arjona (@sarjona)
              Tester:
              Jennifer Bauzon
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 46 minutes
                  2h 46m