浏览代码

Merge pull request #423 from MichelReij/master

Fixed the schedule event
Sebastián Katzer 10 年之前
父节点
当前提交
c61f1ad2fa
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/android/LocalNotification.java

+ 4 - 1
src/android/LocalNotification.java

@@ -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);
     	}
     }