Commit 1b2e2f14 by Sebastián Katzer

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

parent 4510d61b
...@@ -102,7 +102,7 @@ public class LocalNotification extends CordovaPlugin { ...@@ -102,7 +102,7 @@ public class LocalNotification extends CordovaPlugin {
PendingIntent sender = PendingIntent.getBroadcast(cordova.getActivity(), 0, intent, PendingIntent.FLAG_CANCEL_CURRENT); PendingIntent sender = PendingIntent.getBroadcast(cordova.getActivity(), 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
if (options.getInterval() > 0) { if (options.getInterval() > 0) {
am.setRepeating(AlarmManager.RTC_WAKEUP, triggerTime, AlarmManager.INTERVAL_DAY, sender); am.setRepeating(AlarmManager.RTC_WAKEUP, triggerTime, options.getInterval(), sender);
} else { } else {
am.set(AlarmManager.RTC_WAKEUP, triggerTime, sender); am.set(AlarmManager.RTC_WAKEUP, triggerTime, sender);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment