Sebastián Katzer 11 éve
szülő
commit
9a2d9da772
2 módosított fájl, 13 hozzáadás és 1 törlés
  1. 9 1
      README.md
  2. 4 0
      src/ios/APPLocalNotification.m

+ 9 - 1
README.md

@@ -24,8 +24,12 @@ Cordova will check all dependencies and install them if they are missing.
 
 ## Adding the Plugin to your project
 Through the [Command-line Interface](http://cordova.apache.org/docs/en/3.0.0/guide_cli_index.md.html#The%20Command-line%20Interface):
-```
+```bash
+# from master:
 cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications.git
+
+# stable version:
+cordova plugin add de.appplant.cordova.plugin.local-notification
 ```
 
 ## Removing the Plugin from your project
@@ -46,6 +50,10 @@ or to use this exact version:
 More informations can be found [here](https://build.phonegap.com/plugins/413).
 
 ## Release Notes
+#### Version 0.7.3 (not yet released)
+- [bugfix:] cancel callbacks have not been fired after all notifications have been canceled on iOS.
+- [change:] The `oncancel` callback will be called at last if `autoCancel` is set to true (iOS).
+
 #### Version 0.7.2 (09.02.2014)
 - [enhancement:] Avoid blocking the main thread (on Android) **(dpogue)**.
 - [bugfix:] `onadd` was called each time after a repeating message was triggered (Android)

+ 4 - 0
src/ios/APPLocalNotification.m

@@ -25,6 +25,8 @@
 
 // Archiviert die Meldungen, sodass sie später abgerufen werden kann
 - (void) archiveNotification:(UILocalNotification*)notification;
+// Entfernt den zur ID passenden Eintrag
+- (void) cancelNotificationWithId:(NSString*)id fireEvent:(BOOL)fireEvent;
 // Nachschlagewerk für Zeitintervallangaben
 - (NSMutableDictionary*) repeatDict;
 // Alle zusätzlichen Metadaten der Notification als Hash
@@ -35,6 +37,8 @@
 - (void) didReceiveLocalNotification:(NSNotification*)localNotification;
 // Hilfsmethode gibt an, ob er String NULL oder Empty ist
 - (BOOL) strIsNullOrEmpty:(NSString*)str;
+// Fires the given event
+- (void) fireEvent:(NSString*) event id:(NSString*) id json:(NSString*) json;
 
 @end