MobileChromeApps / mobile-chrome-apps

Chrome apps on Android and iOS
BSD 3-Clause "New" or "Revised" License
2.5k stars 347 forks source link

Error using chrome.storage.sync #596

Closed vikasprogrammer closed 9 years ago

vikasprogrammer commented 9 years ago

I am using the following code :

chrome.storage.sync.get('Shops', function(retVal) {
 console.log(retVal);
});

But I get this error:

gopher://xxx/_generated_background_page.html

Rest of the app (which does not call chrome.storage.sync works perfectly fine). I am using AngularJS.

agrieve commented 9 years ago

chrome.storage.sync doesn't work. chrome.storage.local should work, and for syncing with drive you should use drive's JS API directly.