Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4313

Check Android notification and reminder settings, and let user enable them if disabled

    XMLWordPrintable

Details

    • Hide

      This issue only needs to be tested in 1 device for each case (e.g. 1 Android and 1 iOS).

      Test both in Android and in iOS

      1. Install the app in a device where it's not installed yet.
      2. Open the app, and when. the app asks for the permission to display notifications answer "No", "Don't allow" or similar.
      3. Login to any site and go to the Notifications tab (the bell icon). Check that at the top you see a message saying that notifications are turned off.
      4. Click "Turn on". Check that the app opens the settings to turn on the notifications (in iOS it opens the Moodle app settings in general, not just notification settings, it's the only thing we can open). Turn on the notifications.
      5. Go back to the app. Check that the warning is no longer displayed.
      6. Go to the native settings again and disable notifications
      7. Go back to the app. Check that the warning is displayed again.
      8. Click "Don't show again". Check that the warning disappears, and it's not displayed again even if you restart the app. 

      Test in an Android 12 or higher

      1. Go to the app settings in Android native settings. Make sure Notifications are enabled.
      2. Disable "Alarms & reminders" permission.
      3. In the app, login in any site. Check that you see a modal saying that Alarms and reminders is disabled.
      4. Click "Not now" and restart the app. Check that the warning isn't displayed again (it's only shown once). 
      5. Open any calendar event. Check that above of the Reminders box you see a message saying that "real time notifications" are turned off.
      6. Click "Turn on". Check that the app opens the settings to turn on the Alarms & reminders. Turn on the setting.
      7. Go back to the app. Check that the warning is no longer displayed.
      8. Go to the native settings again and disable Alarms & reminders.
      9. Go back to the app. Check that the warning is displayed again in the event page.
      10. Click "Don't show again". Check that the warning disappears, and it's not displayed again even if you leave the page and open it again. 
      11. Add a reminder with the setting turned off. Check that you receive the notification (it can appear up to 15 minutes late).
      Show
      This issue only needs to be tested in 1 device for each case (e.g. 1 Android and 1 iOS). Test both in Android and in iOS Install the app in a device where it's not installed yet. Open the app, and when. the app asks for the permission to display notifications answer "No", "Don't allow" or similar. Login to any site and go to the Notifications tab (the bell icon). Check that at the top you see a message saying that notifications are turned off. Click "Turn on". Check that the app opens the settings to turn on the notifications (in iOS it opens the Moodle app settings in general, not just notification settings, it's the only thing we can open). Turn on the notifications. Go back to the app. Check that the warning is no longer displayed. Go to the native settings again and disable notifications Go back to the app. Check that the warning is displayed again. Click "Don't show again". Check that the warning disappears, and it's not displayed again even if you restart the app.  Test in an Android 12 or higher Go to the app settings in Android native settings. Make sure Notifications are enabled. Disable "Alarms & reminders" permission. In the app, login in any site. Check that you see a modal saying that Alarms and reminders is disabled. Click "Not now" and restart the app. Check that the warning isn't displayed again (it's only shown once).  Open any calendar event. Check that above of the Reminders box you see a message saying that "real time notifications" are turned off. Click "Turn on". Check that the app opens the settings to turn on the Alarms & reminders. Turn on the setting. Go back to the app. Check that the warning is no longer displayed. Go to the native settings again and disable Alarms & reminders. Go back to the app. Check that the warning is displayed again in the event page. Click "Don't show again". Check that the warning disappears, and it's not displayed again even if you leave the page and open it again.  Add a reminder with the setting turned off. Check that you receive the notification (it can appear up to 15 minutes late).
    • MOODLE_402_STABLE
    • Moodle Apps - 2024 i1.1, Moodle Apps - 2024 i1.2, Moodle Apps - 2024 i1.3

    Description

      The app can detect if notifications have been disabled. In that case, we could display a message to the user explaining why are they needed with a button to open the settings to enable them (and a "Don't ask me again" option). This is done with the intent ACTION_APP_NOTIFICATION_SETTINGS.

      In the same way, the app can detect if "Alarms & reminders" have been disabled (this is needed for local notifications). This is done with ACTION_REQUEST_SCHEDULE_EXACT_ALARM.

      Shaping document: https://docs.google.com/document/d/13mzQ7_SdigMWoTEMJKj_zXhqqSkQuabm8YffvcwFJx0

      Attachments

        Issue Links

          Activity

            People

              dpalou Dani Palou
              dpalou Dani Palou
              Pau Ferrer Pau Ferrer
              Isabel Renedo Rouco Isabel Renedo Rouco
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Clockify

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