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

iOS: HTML in Notifications

XMLWordPrintable

    • 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.
    • MOODLE_21_STABLE
    • MOODLE_21_STABLE

      For more information and screenshots see:

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

            dpalou Dani Palou
            jleyva Juan Leyva
            Frédéric Massart Frédéric Massart
            Juan Leyva Juan Leyva
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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