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

Include option for testing Push notifications in a site

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull from Repository:
    • Pull 3.11 Branch:
      MDL-65983-311
    • Pull Master Branch:
      MDL-65983-master
    • Testing Instructions:
      Hide

      Requirements for testing:

      • A site with public internet site address (URL) over HTTPS using ngrok.
      • Mobile app

      Setup

      1. Login as admin using the public URL.
      2. Go to Site administration -> Mobile app -> Mobile settings.
      3. Select "Enable web services for mobile devices".
      4. Click "Save changes".
      5. Go to Site administration -> Messaging -> Notification settings and check that you see the "Mobile" plugin enabled (checkbox with a tick) just under Notifications plugins

      Testing scenario 1: Moodle site

      1. Go to the Site administration -> Messaging -> Notification settings > Mobile settings > Check and test push notifications configuration
      2. Confirm that:
        • You see three errors: Notification server (Airnotifier) configuration, Airnotifier access key and User devices
        • The "Default notification preferences" check is set to Warning
        • The rest of the checks are ok
      3. Now go to Administration -> Site registration
      4. And complete the registration process by accepting the "Privacy notice" and clicking "Register your site" button
      5. Once the registration process finishes, go back to the Site administration -> Messaging -> Notification settings > Mobile settings > Check and test push notifications configuration
      6. Confirm that:
        • All the checks are OK except the last two ones that are Error for "User devices" and Warning for "Default notification preferences"

      Testing scenario 2: Mobile app

      1. Access as admin with the Moodle mobile app to the site
      2. Close or put in background the Moodle mobile app in your device
      3. Go back to the Moodle site "Check and test push notifications configuration" page and confirm that:
        • The last check (User devices) says OK
      4. Click "Send test push notification to my devices", Accept the confirmation message and verify that:
        • You receive a Push notification in the device

      Testing scenario 3: Critical error

      1. Go to Site administration -> Messaging -> Notification settings
      2. Disable the Mobile plugin
      3. Save changes
      4. Go back to the Moodle site "Check and test push notifications configuration" page and confirm that:
        • You should see a critical error in "Enable mobile notifications"
        • The "Send test push notification to my devices" button should be disabled
      Show
      Requirements for testing: A site with public internet site address (URL) over HTTPS using ngrok. Mobile app Setup Login as admin using the public URL. Go to Site administration -> Mobile app -> Mobile settings. Select "Enable web services for mobile devices". Click "Save changes". Go to Site administration -> Messaging -> Notification settings and check that you see the "Mobile" plugin enabled (checkbox with a tick) just under Notifications plugins Testing scenario 1: Moodle site Go to the Site administration -> Messaging -> Notification settings > Mobile settings > Check and test push notifications configuration Confirm that: You see three errors: Notification server (Airnotifier) configuration, Airnotifier access key and User devices The "Default notification preferences" check is set to Warning The rest of the checks are ok Now go to Administration -> Site registration And complete the registration process by accepting the "Privacy notice" and clicking "Register your site" button Once the registration process finishes, go back to the Site administration -> Messaging -> Notification settings > Mobile settings > Check and test push notifications configuration Confirm that: All the checks are OK except the last two ones that are Error for "User devices" and Warning for "Default notification preferences" Testing scenario 2: Mobile app Access as admin with the Moodle mobile app to the site Close or put in background the Moodle mobile app in your device Go back to the Moodle site "Check and test push notifications configuration" page and confirm that: The last check (User devices) says OK Click "Send test push notification to my devices", Accept the confirmation message and verify that: You receive a Push notification in the device Testing scenario 3: Critical error Go to Site administration -> Messaging -> Notification settings Disable the Mobile plugin Save changes Go back to the Moodle site "Check and test push notifications configuration" page and confirm that: You should see a critical error in "Enable mobile notifications" The "Send test push notification to my devices" button should be disabled

      Description

      Like it was done for testing email but for testing Push notifications (detecting the possible errors)

        Attachments

        1. example1.png
          example1.png
          183 kB
        2. example2.png
          example2.png
          83 kB
        3. MDL-65983.jpg
          MDL-65983.jpg
          35 kB
        4. MDL-65983 (2).jpg
          MDL-65983 (2).jpg
          41 kB
        5. screenshot-1.png
          screenshot-1.png
          112 kB

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 3 hours, 51 minutes
                  2d 3h 51m