Browse Source

Added note about how to specify the notification icon under Android.

Sebastián Katzer 12 years ago
parent
commit
137c9f45f4
1 changed files with 14 additions and 0 deletions
  1. 14 0
      README.md

+ 14 - 0
README.md

@@ -105,6 +105,20 @@ function background (id) {
 
 
 
 
 ## Quirks
 ## Quirks
+### How to specify the notification icon under Android
+By default all notifications will display the app icon. But an specific icon can be defined through the following way.
+```javascript
+/**
+ * Displays the <package.name>.R.drawable.ic_launcher icon
+ */
+window.plugin.notification.local.add({ icon: 'ic_launcher' });
+
+/**
+ * Displays the android.R.drawable.ic_dialog_email icon
+ */
+window.plugin.notification.local.add({ icon: 'ic_dialog_email' });
+```
+
 ### Windows Phone 8.0
 ### Windows Phone 8.0
 Windows Phone 8.0 has no notification center. Instead local notifications are realized through live tiles updates.
 Windows Phone 8.0 has no notification center. Instead local notifications are realized through live tiles updates.