fryday
fryday

Reputation: 387

Chrome notification not working

I have code which works under Windows 7 Chrome correctly, but not in Ubuntu Chrome.

var opt = {
type: "list",
title: "Primary Title",
message: "Primary message to display",
iconUrl: "../icon.png",
items: [{ title: "Item1", message: "This is item 1."},
    { title: "Item2", message: "This is item 2."},
    { title: "Item3", message: "This is item 3."}]
}
chrome.notifications.create(new Date().getTime().toString(), opt, function() {});

In Ubuntu it looks like basic notification. What's wrong with it? Maybe Ubuntu's Chrome not support such notifications?

Upvotes: 0

Views: 478

Answers (1)

Xan
Xan

Reputation: 77521

You are correct. Linux version of Chrome does not support the "Rich" notifications yet, and falls back to default notifications.

Corresponding bug is (loosely) here, and is pending major changes in Chrome regarding Aura, so don't expect it soon.

Upvotes: 1

Related Questions