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

Passed events are repeated some times

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Notifications add-on
    • Labels:
    • Testing Instructions:
      Hide

      To test the plugin fix:

      1. Re-install the local notifications plugin to your project:

        cordova plugin remove cordova-plugin-local-notifications-mm
        cordova plugin add cordova-plugin-local-notifications-mm
        

      2. Add a new event to Moodle. Set the date soon enough so a notification can be triggered in Mobile.
      3. Access Mobile and make the app trigger a notification for that event (change the notification time if needed).
      4. Now reboot your phone. Check that the notification is not re-triggered.

      Unfortunately, a real case to test the app fix would take too long, so the easiest way is to manually test it:

      1. Install the app in a real device.
      2. Open the console and execute the following code:

        var $mmaCalendar = angular.element(document.querySelector('[ng-app]')).injector().get('$mmaCalendar');
        var event = {id: 1, timestart: 1446000000, timeduration: 0, name: 'Test'};
        $mmaCalendar.scheduleEventNotification(event, 10);
        

      3. Check that the notification isn't triggered.
      Show
      To test the plugin fix: Re-install the local notifications plugin to your project: cordova plugin remove cordova-plugin-local-notifications-mm cordova plugin add cordova-plugin-local-notifications-mm Add a new event to Moodle. Set the date soon enough so a notification can be triggered in Mobile. Access Mobile and make the app trigger a notification for that event (change the notification time if needed). Now reboot your phone. Check that the notification is not re-triggered. Unfortunately, a real case to test the app fix would take too long, so the easiest way is to manually test it: Install the app in a real device. Open the console and execute the following code: var $mmaCalendar = angular.element(document.querySelector('[ng-app]')).injector().get('$mmaCalendar'); var event = {id: 1, timestart: 1446000000, timeduration: 0, name: 'Test'}; $mmaCalendar.scheduleEventNotification(event, 10); Check that the notification isn't triggered.
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE

      Description

      It seems that in some cases passed events are notified again

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            jleyva Juan Leyva
            Peer reviewer:
            Juan Leyva Juan Leyva
            Integrator:
            Juan Leyva Juan Leyva
            Tester:
            Juan Leyva Juan Leyva
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              6/Nov/15