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

    • MOODLE_37_STABLE
    • MOODLE_38_STABLE
    • MDL-66775-master
    • 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": ""

      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"

            jleyva Juan Leyva
            jleyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Jennifer Bauzon Jennifer Bauzon
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.