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

Settings don't sync between computers #1

Open
chrisvelevitch opened this issue Aug 20, 2014 · 8 comments
Open

Settings don't sync between computers #1

chrisvelevitch opened this issue Aug 20, 2014 · 8 comments

Comments

@chrisvelevitch
Copy link

When I create my settings and the install Homely on another computer, the settings aren't sync'ed. Also when I change settings the other computer should also be sync'ed.

@Terrance
Copy link
Owner

The problem with Chrome's synced extension storage is the size limit for each item. Because all of the links are stored under a single key, it goes over the size limit after about 6 blocks.

In theory, the rest of the settings should sync okay, but we might need some other way of storing links (perhaps with the Chrome filesystem APIs).

@Terrance
Copy link
Owner

Seems the FileSystem API is only available to apps, not extensions. Investigating use of sync storage by flattening individual settings into their own keys, but this currently goes over the max items limit instead.

For now, might just have to implement this as importing/exporting a settings file (you can then synchronize it yourself between devices, e.g. cloud storage).

Terrance added a commit that referenced this issue Sep 9, 2014
A sub-optimal solution for issue #1 - export and sync the settings file yourself, re-importing it on each computer as needed.
@keithfrankish
Copy link

Hi. Is sync between machines still not feasible for this extension? It's a terrific way of presenting important links--the best I've found--but the absence of automatic sync is a big drawback.

@Terrance
Copy link
Owner

Unsure, I haven't taken a look recently. I know extensions exist with arbitrary sync storage (SwitchyOmega and μBlock come to mind), so I might have to prod them and see how they do it. Possibly the FileSystem APIs have been extended to extensions now, or there's a separate API I can use.

Previously the links were too much to store in a single database key of the sync storage, but also too numerous to store in their own keys.

@Terrance
Copy link
Owner

Terrance commented Oct 10, 2017

Looks like they both achieve their storage through chunking their own config. 🤔

Given our config serializes into JSON, this is doable, if a bit ugly.

@Droyk
Copy link

Droyk commented Apr 28, 2019

Any progress on this one?

@augustusy
Copy link

Any progress on this one? Have the sync function would be perfect.

@ShunCai
Copy link

ShunCai commented Jan 1, 2020

@Terrance chrome.storage.sync can use Chrome's sync

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

No branches or pull requests

6 participants