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

Remove specific payload format in the message_airnotifier plugin

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8
    • 1.4.4
    • Airnotifier
    • MOODLE_14_STABLE
    • MOODLE_18_STABLE

      Currently, the message_airnotifier plugin creates a different payload (message format) depending on the device platform ( iOs or Android).

      This has several problems:

      • If iOs or Android changes the payload format we have to patch that code and force admins to upgrade their Moodle installations to use the latest message_airnotifier version
      • If we want to add a new platform (firefoxos, Windows 8, Windows Phone 8) we need also to upgrade the plugin and Moodle installations

      The solution is that the message_airnotifier plugin must send all the message data (the full message object) to Airnotifier. Airnotifier has to process that message object and depending the target device platform create a custom payload.

      We need some changes in:

      • Plugin: For making the code more "simple" and maintainable. Moodle has to send the full message to Airnotifier
      • Airnotifier: Add support to "message formatters" plugins or something like that, because Moodle will requiere specific formatting of the message. Airnotifier installation should add basic "message formatters" plugins and we can create the custom ones for Moodle.

      The benefit is that if we need to update or add new platforms we have to make changes only in the Airnotifier "message formatters"

            jleyva Juan Leyva
            jleyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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