Can't get pushNotification.setMultiNotificationMode(); to work

here is my code:

 function initPushwoosh()
 {

  var pushNotification = window.plugins.pushNotification;
  pushNotification.onDeviceReady();

  pushNotification.registerDevice({ projectid: "my_project_number", appid : "my_app_id" },
    function(status) {
        var pushToken = status;
        console.warn('push token: ' + pushToken);
    },
    function(status) {
        console.warn(JSON.stringify(['failed to register ', status]));
    }
);

 pushNotification.setMultiNotificationMode();

     pushNotification.setEnableLED(true);

     document.addEventListener('push-notification', function(event) {
     var title = event.notification.title;
     var userData = event.notification.userdata;

        if(typeof(userData) != "undefined") {
        console.warn('user data: ' + JSON.stringify(userData));
    }

    navigator.notification.alert(title);
});

}

asked 09 Apr '14, 16:00
dtl's gravatar image

dtl
215

edited 09 Apr '14, 16:02

Hello,

Unfortunately, our developers cannot seem to reproduce the issue. The code looks absolutely fine.

Could you please create a support ticket via Contact us form on our website, so we could further discuss the issue? Most probably, the issue is somehow related to the type of device and/or Android version.

permanent link
answered 17 Apr '14, 06:24
Dmitry%20%20Dyudeev's gravatar image

Dmitry Dyudeev
3.7k7

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:

×447
×91

question asked: 09 Apr '14, 16:00

question was seen: 1,235 times

last updated: 17 Apr '14, 06:24