Procházet zdrojové kódy

Add note about ID format on Android

Sebastián Katzer před 12 roky
rodič
revize
4fc99882cd
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      README.md

+ 2 - 1
README.md

@@ -103,11 +103,12 @@ window.plugin.notification.local.add({
     background: String, // a javascript function to be called if the app is in the background
 });
 ```
+**Note:** On Android the notification id needs to be a string which can be converted to a number. If the ID has an invalid format, it will be ignored, but canceling the notification will fail.
 
 ### cancel()
 The method cancels a notification which was previously added. It takes the ID of the notification as an argument.
 ```javascript
-window.plugin.notification.local.cancel(__id__);
+window.plugin.notification.local.cancel(String);
 ```
 
 ### cancelAll()