Hi,
in my packaged app i'm using Storage Sync API to set/get data.
Functions used are
// read from google sync
chrome.storage.sync.get("mySettings", function(items) {
if (items.mySettings === undefined){
//init my myLocalSettings
}else {
myLocalSettings = items.mySettings;
}
console.log("ok settings loaded");
);
and
// saves to Google Sync
chrome.storage.sync.set({"mySettings": myLocalSettings}, function() {
// Notify that we saved.
console.log("ok settings saved");
});
But i noticed that if a load my packaged app from another pc data is not synchronized (chrome.storage.sync.get returns mySettings as undefined variable)
Anyone can help me please?
Thank you!
Lewix