Chrome - Notify User to install your extension
I can't remember what website it was, but when I browsed the homepage with Google Chrome I was notified that the site had an extension available for Google Chrome, with a button to install.
I can't find the documentation of how to notify users (that are using chrome) that th开发者_JAVA技巧e extension is available when they browse my site (the extension is related to my site's content). I'd like to know how to prompt the user to install or navigate to the extension page with a native Google Chrome notification.
I believe Firefox extensions can be installed in this way.
I assume you are talking about the yellow infobar style notification like page2rss uses. There is no official support for such a notification. They have it implemented in HTML on their site and trigger it based on browser user agent.
I would recommend against implementing notifications that mimic chrome design and make users think it is a notification from the browser though. Just have a download button next to a Chrome icon that asks the user to install.
Update: Chrome now supports inline installation which makes it very easy to check if an extension is installed and if not install with just a couple of clicks.
Update 2: Inline installation is no longer available.
check the user agent of the browser that is viewing the page and display accordingly :-)
精彩评论