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

When clicking a push notification displayed in the notifications page, try to use savedmessageid to retrieve the notification data

XMLWordPrintable

    • Hide

      This issue can be tested easily with Workplace and dynamic rules, but this code won't be in the WP app until 5.0 is released.

      Another way to test this is to manually send a push using CURL, setting a savedmessageid corresponding to an existing notification of the user. When the push arrives it should display your title and text, but after clicking it it should display the title and text of the notification with id=savedmessageid (as long as the user can view that notification and it's one of the most recent ones).

      Show
      This issue can be tested easily with Workplace and dynamic rules, but this code won't be in the WP app until 5.0 is released. Another way to test this is to manually send a push using CURL, setting a savedmessageid corresponding to an existing notification of the user. When the push arrives it should display your title and text, but after clicking it it should display the title and text of the notification with id=savedmessageid (as long as the user can view that notification and it's one of the most recent ones).
    • MOODLE_405_STABLE
    • Moodle Apps Sprint 2025-I1.4

      Right now, when the user clicks a push notification that isn't handled by the app, the app opens a page to view the notification (inside the notifications tab) and displays the information included in the push, nothing else.

      If this push notification includes a savedmessageid, we can use it to try to obtain the notification data using the getNotificationById function of the page (waiting until the list is loaded) so we can display the complete notification data.

      This is because the notification from the WS sometimes includes more information than the push.

            dpalou Dani Palou
            dpalou Dani Palou
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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