InnovationInspiration

  • Archive
  • RSS
  • Ask me anything

Detect Google Chrome Plugin Version

We have been developing Chrome extensions, and I thought I’d share how we solved a problem we faced.

We needed to be able to detect what version of the plugin was connecting to our servers. If we change our backend, we want to be able to say that older versions of the plugin which are no longer compatible need to update. The chrome API doesn’t offer any way to detect the version directly. 

What we did was go in and load the manifest json, and read the version # that way (although it seems it may be buggy if you do it with Jquery). Here is the code:

  • 1 year ago
  • 2
  • Permalink
  • Share
    Tweet

2 Notes/ Hide

  1. detect-invisible liked this
  2. imiaou liked this
  3. nicolaerusan posted this
← Previous • Next →

About

Hey, I'm Nicolae Rusan - cofounder of Frame. This is where I write on the Internet about technology, philosophy, and art.

Pages

  • Projects
  • About Me

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr