Reputation: 21
I need to create a simple way to be able to push out a multiple notifications on desktop using the firefox sdk in an add-on.
My code is:
notifications.notify({
title: "Jabberwocky ",
text: "Twas brillig, and the slithy toves ",
data: "did gyre and gimble in the wabe ",
onClick: function(data) {
console.log("click data: "+data);
// console.log(this.data) would produce the same result.
}
});
It's working well but not working in for loop.
Upvotes: 1
Views: 466
Reputation: 1268
From Bug 935507, SDK notifications do not stack. There has been discussion (bug 616636) regarding how to deal with multiple notifications, as that's a strange UX problem. There is probably a better way to display information than for-looping a bunch of stuff to the desktop. What are your goals?
Upvotes: 2