2014-04-07 80 views
0

我的代码可以在Windows 7 Chrome中正确运行,但不能在Ubuntu Chrome中运行。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() {}); 

在Ubuntu中它看起来像基本通知。它出什么问题了?也许Ubuntu的Chrome不支持这种通知?

回答

1

你是对的。 Chrome的Linux版本尚不支持“丰富”通知,并回落到默认通知。

相应的错误是(松散地)here,并且正在等待Chrome关于Aura的重大更改,所以不要期待它很快。