Commit 58908c20 by Michel Reij

Fixed the schedule event

In Android the ‘schedule’ event was not raised after scheduling one or
more tasks.
parent 7f86e12d
......@@ -180,7 +180,10 @@ public class LocalNotification extends CordovaPlugin {
for (int i = 0; i < notifications.length(); i++) {
JSONObject options = notifications.optJSONObject(i);
getNotificationMgr().schedule(options, TriggerReceiver.class);
Notification notification =
getNotificationMgr().schedule(options, TriggerReceiver.class);
fireEvent("schedule", notification);
}
}
......
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