With Chrome 28 google added new Rich Notifications.
I was trying to get it working with Chrome legacy packed app but that doesn't seem to work. Google published sample packed app that uses Rich notifications but as soon as you change packed app to legacy packed app you get an error at notification creation.
notifications.create: Unknown error. lastError:29
set lastError:29
(anonymous function) sendRequest:46
forEach utils:21
chromeHidden.handleResponse
Here is this changed sample app that is not working any more. https://dl.dropboxusercontent.com/u/3546822/rich-notifications-broken.zip
Only thing I changed was to replace:
"background" : {
"scripts" : ["app.js"]
}
with
"launch" : {
"local_path": "window.html"
}
What am I doing wrong?
PS: Application has permissions for notifications.
So it looks like only way for old legacy packaged apps is to use HTML5 Notification api. https://developer.mozilla.org/en/docs/Web/API/notification