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

Add a App Policy setting for the Mobile app

XMLWordPrintable

    • MOODLE_34_STABLE
    • MOODLE_35_STABLE
    • MDL-61669-master
    • Hide
      1. Update your Moodle site and check that the new option is displayed as a new option, but leave it blank
      2. Enable "Mobile services": Plugins ► Web Services ► Mobile
      3. Create a WS Token for one user on the site:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      4. Next, you can do a CURL REST call simulating a WS client with the user.
        • You need to replace the wstoken, and the URL of your moodle instance

          curl 'http://[YOUR_MOODLE_URL]/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=[YOUR_WS_TOKEN]&section=mobileapp' | python -m "json.tool"

      5. Check that in the WS response the tool_mobile_apppolicy value is empty
      6. Go to Site administration ►Mobile app ►Mobile settings
      7. Add a valid URL in the App policy field
      8. Execute again the same curl Request
      9. Check that in the WS response, in the tool_mobile_apppolicy value field, you see the URL you entered
      Show
      Update your Moodle site and check that the new option is displayed as a new option, but leave it blank Enable "Mobile services": Plugins ► Web Services ► Mobile Create a WS Token for one user on the site: Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user. You need to replace the wstoken, and the URL of your moodle instance curl 'http://[YOUR_MOODLE_URL]/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken= [YOUR_WS_TOKEN] &section=mobileapp' | python -m "json.tool" Check that in the WS response the tool_mobile_apppolicy value is empty Go to Site administration ►Mobile app ►Mobile settings Add a valid URL in the App policy field Execute again the same curl Request Check that in the WS response, in the tool_mobile_apppolicy value field, you see the URL you entered

      Apple (and sometimes Google) forces apps to have a usage Policy for your apps.

      Currently we are using the Moodle generic one, but any site should be able to use its own app specific Policy (or fallback to Site Policy if configured).

      Therefore, we must add a new setting (in the Mobile settings section) so admins can point to a link where there app Policy is hosted, if its empty, we should fallback to the Site Policy link and if its empty, use Moodle generic one.

            jleyva Juan Leyva
            jleyva Juan Leyva
            Carlos Escobedo Carlos Escobedo
            Jun Pataleta Jun Pataleta
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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