Commit 1b2e2f14 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Bugfix: the repeat interval is defined through the js interface.

parent 4510d61b
Loading
Loading
Loading
Loading
+1 −1
Changes for src/android/LocalNotification.java: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ public class LocalNotification extends CordovaPlugin {
        PendingIntent sender = PendingIntent.getBroadcast(cordova.getActivity(), 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);

        if (options.getInterval() > 0) {
            am.setRepeating(AlarmManager.RTC_WAKEUP, triggerTime, AlarmManager.INTERVAL_DAY, sender);
            am.setRepeating(AlarmManager.RTC_WAKEUP, triggerTime, options.getInterval(), sender);
        } else {
            am.set(AlarmManager.RTC_WAKEUP, triggerTime, sender);
        }