Commit 58908c20 authored by Michel Reij's avatar Michel Reij
Browse files

Fixed the schedule event

In Android the ‘schedule’ event was not raised after scheduling one or
more tasks.
parent 7f86e12d
Loading
Loading
Loading
Loading
+3 −0
Changes for src/android/LocalNotification.java: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -180,7 +180,10 @@ public class LocalNotification extends CordovaPlugin {
    	for (int i = 0; i < notifications.length(); i++) {
    		JSONObject options = notifications.optJSONObject(i);

            Notification notification =
                    getNotificationMgr().schedule(options, TriggerReceiver.class);
            
            fireEvent("schedule", notification);
    	}
    }