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

Passed events are repeated some times

XMLWordPrintable

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

      It seems that in some cases passed events are notified again

            dpalou Dani Palou
            jleyva Juan Leyva
            Juan Leyva Juan Leyva
            Juan Leyva Juan Leyva
            Juan Leyva 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.