Loading CHANGELOG.md +1 −0 Changes for CHANGELOG.md: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ - [enhancement:] Scope parameter for `isScheduled` and `getScheduledIds` - [enhancement:] Callbacks for `cancel` & `cancelAll` - [enhancement:] `image:` accepts remote URLs and local URIs (Android) - [feature:] New Android specific `led:` flag. #### Version 0.7.4 (22.03.2014) - [bugfix:] Platform specific properties were ignored. Loading README.md +8 −0 Changes for README.md: 8 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -74,6 +74,7 @@ More informations can be found [here][PGB_plugin]. - [enhancement:] Scope parameter for `isScheduled` and `getScheduledIds` - [enhancement:] Callbacks for `cancel` & `cancelAll` - [enhancement:] `image:` accepts remote URLs and local URIs (Android) - [feature:] New Android specific `led:` flag #### Further informations - See [CHANGELOG.md][changelog] to get the full changelog for the plugin. Loading Loading @@ -420,6 +421,13 @@ To specify a custom interval, the `repeat` property can be assigned with an numb window.plugin.notification.local.add({ repeat: 15 }); ``` ### Change the LED color on Android devices The LED color can be specified through the `led` property. By default the color value is white (FFFFFF). Its possible to change that value by setting another hex code. ```javascript window.plugin.notification.local.add({ led: 'A0FF05' }); ``` ## Quirks Loading src/android/Options.java +13 −0 Changes for src/android/Options.java: 13 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -244,6 +244,19 @@ public class Options { return options.optString("json", ""); } /** * @return * The notification color for LED */ public int getColor () { String hexColor = options.optString("led", "000000"); int aRGB = Integer.parseInt(hexColor,16); aRGB += 0xFF000000; return aRGB; } /** * Returns numerical icon Value * Loading src/android/Receiver.java +2 −1 Changes for src/android/Receiver.java: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -126,7 +126,8 @@ public class Receiver extends BroadcastReceiver { .setSmallIcon(options.getSmallIcon()) .setLargeIcon(options.getIcon()) .setAutoCancel(options.getAutoCancel()) .setOngoing(options.getOngoing()); .setOngoing(options.getOngoing()) .setLights(options.getColor(), 500, 500); if (sound != null) { notification.setSound(sound); Loading www/local-notification.js +1 −0 Changes for www/local-notification.js: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -95,6 +95,7 @@ LocalNotification.prototype = { defaults.icon = 'icon'; defaults.smallIcon = null; defaults.ongoing = false; defaults.led = 'FFFFFF'; /*RRGGBB*/ defaults.sound = 'TYPE_NOTIFICATION'; break; case 'iOS': defaults.sound = ''; break; Loading Loading
CHANGELOG.md +1 −0 Changes for CHANGELOG.md: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ - [enhancement:] Scope parameter for `isScheduled` and `getScheduledIds` - [enhancement:] Callbacks for `cancel` & `cancelAll` - [enhancement:] `image:` accepts remote URLs and local URIs (Android) - [feature:] New Android specific `led:` flag. #### Version 0.7.4 (22.03.2014) - [bugfix:] Platform specific properties were ignored. Loading
README.md +8 −0 Changes for README.md: 8 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -74,6 +74,7 @@ More informations can be found [here][PGB_plugin]. - [enhancement:] Scope parameter for `isScheduled` and `getScheduledIds` - [enhancement:] Callbacks for `cancel` & `cancelAll` - [enhancement:] `image:` accepts remote URLs and local URIs (Android) - [feature:] New Android specific `led:` flag #### Further informations - See [CHANGELOG.md][changelog] to get the full changelog for the plugin. Loading Loading @@ -420,6 +421,13 @@ To specify a custom interval, the `repeat` property can be assigned with an numb window.plugin.notification.local.add({ repeat: 15 }); ``` ### Change the LED color on Android devices The LED color can be specified through the `led` property. By default the color value is white (FFFFFF). Its possible to change that value by setting another hex code. ```javascript window.plugin.notification.local.add({ led: 'A0FF05' }); ``` ## Quirks Loading
src/android/Options.java +13 −0 Changes for src/android/Options.java: 13 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -244,6 +244,19 @@ public class Options { return options.optString("json", ""); } /** * @return * The notification color for LED */ public int getColor () { String hexColor = options.optString("led", "000000"); int aRGB = Integer.parseInt(hexColor,16); aRGB += 0xFF000000; return aRGB; } /** * Returns numerical icon Value * Loading
src/android/Receiver.java +2 −1 Changes for src/android/Receiver.java: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -126,7 +126,8 @@ public class Receiver extends BroadcastReceiver { .setSmallIcon(options.getSmallIcon()) .setLargeIcon(options.getIcon()) .setAutoCancel(options.getAutoCancel()) .setOngoing(options.getOngoing()); .setOngoing(options.getOngoing()) .setLights(options.getColor(), 500, 500); if (sound != null) { notification.setSound(sound); Loading
www/local-notification.js +1 −0 Changes for www/local-notification.js: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -95,6 +95,7 @@ LocalNotification.prototype = { defaults.icon = 'icon'; defaults.smallIcon = null; defaults.ongoing = false; defaults.led = 'FFFFFF'; /*RRGGBB*/ defaults.sound = 'TYPE_NOTIFICATION'; break; case 'iOS': defaults.sound = ''; break; Loading