Google Chrome Extension: Notification System, RSS Reader

967 Views Asked by At

I've created a simple RSS Reader extension for my blog, however, I was wondering how I could implement a notification system (like Google Reader Notifier + Gmail Notifier have). So, a little number would popup on the extension icon when a new post is available/unread.

How would I go around doing this?

1

There are 1 best solutions below

5
On

You can do this with the chrome.browserAction.setBadgeText API.

Something like:

chrome.browserAction.setBadgeText({ text: '5' });