chrome.storage.sync does not sync across browsers and devices -


i using chrome.storage.sync in extension sync data entered in textarea in popup.html.

it stores , restores data correctly locally not sync data across browsers.

each browser extension has own locally entered data available.

the following code used save , restore data:

// called when user opens popup.html $(window).ready(     function restore() {         var textarea = document.queryselector("#contacts");         chrome.storage.sync.get('contacts', function(r) {             console.log("contacts retrieved");             var content = r["contacts"];             textarea.value = content;         }); });  // called when user saves changes textarea $("#save-button").click(function() {         var textarea = document.queryselector("#contacts").value;         var save = {};         save["contacts"] = textarea;         // save data using chrome extension storage api.         chrome.storage.sync.set(save, function() {             console.log("contacts saved");         });         $("#confirm").text("contacts saved.").show().fadeout(5000); }); 

in manifest.json grant permissions storage:

    "permissions": [         "tabs",          "http://*/*",          "storage"     ] } 

what reason chrome sync not syncing across browsers , devices?

is extension uploaded chrome web store account , published (or @ least published testers)?

cross-computer sync doesn't work on non-web store extensions last checked, have put on chrome web store test.

you have make sure extensions checked under chrome://settings/syncsetup.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -