Konrad Dzwinel
Konrad Dzwinel

Reputation: 37903

Is LocalStorage synchronization for Chrome extensions already available?

I found chromium issue titled "Allow extensions/apps to sync their own settings" that has status 'Fixed'. It's from December 2011. So, does it work? If so, how does it work and where are the docs?

Last time similar question was asked in 2010 and then the answer was to use bookmarks hack. I think it's time to have an update on this topic.

Update: I just found these docs for experimental chrome.storage API. Is this what I'm looking for? Do we have any new alternatives (other than bookmarks) till chrome.storage goes stable?

Upvotes: 0

Views: 2121

Answers (1)

Rob W
Rob W

Reputation: 348992

  • chrome.experimental.storage was introduced as an experimental API in Chrome 18.
  • In Chrome 19, the API became restricted to the Dev channel.
  • Since Chrome 20, the API is not experimental any more Docs | Examples.

To use the API, manifest version 2 is required. This is the minimum manifest file to get an extension to work in Chrome 20+:

{
  "name": "test",
  "version": "1",
  "manifest_version": 2,
  "permissions": ["storage"]
}

Upvotes: 2

Related Questions