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

Site admins should see a warning asking them to enable the Mobile notifications plugin after registering for an Airnotifier key

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.8.1
    • 3.9
    • Other
    • MOODLE_38_STABLE
    • MOODLE_39_STABLE
    • MDL-67907-master
    • Hide
      • To register your site you will need a real address for your site. Consider using ngrok.
      1. As admin, go to "Site administration > Registration" and register your site.
      2. Go to "Site administration >  Mobile app > Mobile settings". Make sure "Enable web services for mobile devices" is disabled.
      3. Go to "Site administration >  Messaging > Notification settings". Make sure the option "Mobile" in "Notification plugins" is disabled.
      4. Click "Settings" next to "Mobile" in "Notification plugins".
      5. Click "Request access key".
      6. Check that you see a success message saying "Key retrieved successfully" and two warnings: one tells you to enable Mobile notifications and the other tells you to enable the Moodle app.
      7. Open in a new tab the link in the "Mobile notifications" warning. Check that it opens the page "Site administration >  Messaging > Notification settings". Enable the "Mobile" option and save.
      8. Go to the tab of step 6 and open in a new tab the link in the "Moodle app" warning. Check that it opens the "Site administration >  Mobile app > Mobile settings". Enable "Enable web services for mobile devices" and save.
      9. Go to the tab of step 6 and click the "Continue" button. Check that it sends you to "Site administration > Messaging > Mobile".
      10. Click "Request access key" again. 
      11. Check that you see a success message saying "Key retrieved successfully" and no warning is displayed.
      Show
      To register your site you will need a real address for your site. Consider using ngrok . As admin, go to "Site administration > Registration" and register your site. Go to "Site administration >  Mobile app > Mobile settings". Make sure "Enable web services for mobile devices" is disabled. Go to "Site administration >  Messaging > Notification settings". Make sure the option "Mobile" in "Notification plugins" is disabled. Click "Settings" next to "Mobile" in "Notification plugins". Click "Request access key". Check that you see a success message saying "Key retrieved successfully" and two warnings: one tells you to enable Mobile notifications and the other tells you to enable the Moodle app. Open in a new tab the link in the "Mobile notifications" warning. Check that it opens the page "Site administration >  Messaging > Notification settings". Enable the "Mobile" option and save. Go to the tab of step 6 and open in a new tab the link in the "Moodle app" warning. Check that it opens the "Site administration >  Mobile app > Mobile settings". Enable "Enable web services for mobile devices" and save. Go to the tab of step 6 and click the "Continue" button. Check that it sends you to "Site administration > Messaging > Mobile". Click "Request access key" again.  Check that you see a success message saying "Key retrieved successfully" and no warning is displayed.

    Description

      I have detected that the most typical problem for site administrators when enabling notifications is that they are not aware that they have to enable the "Mobile notifications" message output plugin after getting the key.

      Most of them think that getting the key is enough and it will be automatically enabled.

      In order to solve this problem, we should provide some clues to our admin users when they obtained a Push notifications key pointing there to the last step of the process.

      So, basically, in message/output/airnotifier/requestaccesskey.php, after successfully retrieving a key for the site, we should check if the plugin is enabled or not and in case is not, display a nice message with a link to the page to enable the "Mobile notifications" plugin.

      Attachments

        Activity

          People

            dpalou Dani Palou
            jleyva Juan Leyva
            Juan Leyva Juan Leyva
            Adrian Greeve Adrian Greeve
            Ferran Recio Ferran Recio
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              15/Jun/20

              Time Tracking

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