Hi,

I´m using Pushwoosh with Phonegap/Cordova...

How can I enable the Notification LED for Android? Is this possible?

Thanks in advance!

asked 29 Mar '14, 22:36
b0nk's gravatar image

b0nk
1114

edited 29 Mar '14, 23:12

Hi,

Actually, in order to enable LED notifications, you would have to only to add window.plugins.pushNotification.setEnableLED(true) line.

For instance, you can do it like this:

var pushNotification = window.plugins.pushNotification;
pushNotification.registerDevice({ projectid: " GOOGLE_PROJECT_ID ", appid : "PUSHWOOSH_APP_ID" },
     function(token) {
         alert(token);
         onPushwooshInitialized(token);
     },
     function(status) {
         alert("failed to register: " + status);
         console.warn(JSON.stringify(['failed to register ', status]));
     }
);
pushNotification.setEnableLED(true);
permanent link
answered 03 Apr '14, 08:34
Dmitry%20%20Dyudeev's gravatar image

Dmitry Dyudeev
3.7k7

edited 03 Apr '14, 08:35

perfect, thank you!

(03 Apr '14, 12:42) b0nk b0nk's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×111

question asked: 29 Mar '14, 22:36

question was seen: 1,598 times

last updated: 03 Apr '14, 12:42