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

Include option for testing Push notifications in a site

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_37_STABLE
    • MOODLE_311_STABLE
    • MDL-65983-master
    • 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

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

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

            jleyva Juan Leyva
            jleyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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