Pushwoosh / pushwoosh-phonegap-plugin

Pushwoosh PhoneGap Build Plugin
Other
109 stars 139 forks source link

window.plugins.pushNotification.setEnableLED(true) is without effect #225

Closed RonnySchleicher closed 7 years ago

RonnySchleicher commented 7 years ago

Steps to reproduce

  1. create new fresh cordova app with the pushwooh plugin
cordova create PhoneGap_android de.test.test Test
cd PhoneGap_android
cordova platform add android
cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin.git 
...
  1. Add the code to initialize the plugin
var pushNotification = window.plugins.pushNotification;
pushNotification.setEnableLED(true, function(){
         console.log('okay');
}, function () {
         console.log('error');
});
pushNotification.setMultiNotificationMode();
pushNotification.onDeviceReady({ projectid : 'XXXX', appid : 'YYYYY' });
pushNotification.registerDevice(....

Problems

Environment

wfhm commented 7 years ago

Hey,

I've just tested the code you provided and it is indeed not working if notification is sent without 'led' key value specified, however with a specified value for it it works as expected. Could you please try sending some notifications via Control Panel with LED parameter checked (see screenshot attached) and let us know about the results?

screen shot 2016-11-17 at 18 28 40

RonnySchleicher commented 7 years ago

Thank you for your quick response. I will test it and then report it again.

RonnySchleicher commented 7 years ago

Sorry for the late reply. Your tip was right. Thanks for your help.