2014-04-07 77 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的重大更改,所以不要期待它很快。