Explorar o código

Merge pull request #423 from MichelReij/master

Fixed the schedule event
Sebastián Katzer %!s(int64=10) %!d(string=hai) anos
pai
achega
c61f1ad2fa
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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);
     	}
     }