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

iOS: HTML in Notifications

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: iOS, Push notifications
    • Labels:
    • Testing Instructions:
      Hide

      The only example we have is with BigBlueButton plugin. Since installing and configuring it can take a while, it's easier to simulate it:

      1. Install the app on a device.
      2. Open the JS console and execute the following code:

        var $mmaPushNotifications = angular.element(document.querySelector('[ng-app]')).injector().get('$mmaPushNotifications');
        $mmaPushNotifications.onMessageReceived({
            foreground: true, 
            title: '<h1>A title with <b>HTML</b></h1>', 
            message: '<span lang="en" class="multilang">Notification text in English</span><span lang="es" class="multilang">Texto de la notificación en español</span>'
        })
        

      3. Check that the notification shown doesn't have HTML tags and only the right language is shown for the message.
      Show
      The only example we have is with BigBlueButton plugin. Since installing and configuring it can take a while, it's easier to simulate it: Install the app on a device. Open the JS console and execute the following code: var $mmaPushNotifications = angular.element(document.querySelector('[ng-app]')).injector().get('$mmaPushNotifications'); $mmaPushNotifications.onMessageReceived({ foreground: true, title: '<h1>A title with <b>HTML</b></h1>', message: '<span lang="en" class="multilang">Notification text in English</span><span lang="es" class="multilang">Texto de la notificación en español</span>' }) Check that the notification shown doesn't have HTML tags and only the right language is shown for the message.
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE

      Description

      For more information and screenshots see:

      https://moodle.org/mod/forum/discuss.php?d=317287

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            jleyva Juan Leyva
            Peer reviewer:
            Frédéric Massart
            Integrator:
            Juan Leyva
            Tester:
            Juan Leyva
            Participants:
            Component watchers:
            Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              28/Aug/15