Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a sample that uses HTML5 notifications #6

Open
astanley opened this issue Mar 1, 2012 · 3 comments
Open

Create a sample that uses HTML5 notifications #6

astanley opened this issue Mar 1, 2012 · 3 comments
Assignees

Comments

@astanley
Copy link
Owner

astanley commented Mar 1, 2012

Proactive notification

Example:

webkitNotifications.requestPermission(function() {
//params = image, title, body
var monkey = "http://icons.iconarchive.com/icons/martin-berube/animal/32/monkey-icon.png";
var notification = webkitNotifications.createNotification("monkey", "Banana", "Oooo ooo eee eee ooooo.");
notification.show();
});

@ghost ghost assigned astanley Mar 1, 2012
@astanley
Copy link
Owner Author

astanley commented Mar 5, 2012

Added a sample to kitchenSink. Will publish soon.

@BBKeeper
Copy link

It doesn't show correct icon, in stead, it only displays the browser icon inside the notification area. I've tried many ways but still failed to make it displaying the expected icon. :(

Any ideas?

@astanley
Copy link
Owner Author

Perhaps the domain of the icon needs to be white listed by the WebWorks app. Otherwise, that may be a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants