{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/localForage/issues/179","labels_url":"https://api.github.com/repos/mozilla/localForage/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/localForage/issues/179/comments","events_url":"https://api.github.com/repos/mozilla/localForage/issues/179/events","html_url":"https://github.com/mozilla/localForage/issues/179","id":35266675,"number":179,"title":"Localforage / Cordova Issue: removeItem and clear not working in cordova-based  hybrid mobile apps.","user":{"login":"vijeysrc","id":946062,"avatar_url":"https://avatars.githubusercontent.com/u/946062?v=3","gravatar_id":"","url":"https://api.github.com/users/vijeysrc","html_url":"https://github.com/vijeysrc","followers_url":"https://api.github.com/users/vijeysrc/followers","following_url":"https://api.github.com/users/vijeysrc/following{/other_user}","gists_url":"https://api.github.com/users/vijeysrc/gists{/gist_id}","starred_url":"https://api.github.com/users/vijeysrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijeysrc/subscriptions","organizations_url":"https://api.github.com/users/vijeysrc/orgs","repos_url":"https://api.github.com/users/vijeysrc/repos","events_url":"https://api.github.com/users/vijeysrc/events{/privacy}","received_events_url":"https://api.github.com/users/vijeysrc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-06-09T07:55:01Z","updated_at":"2015-03-10T17:39:00Z","closed_at":null,"body":"I also posted this issue in stackoverfow: http://stackoverflow.com/questions/24115938/localforage-cordova-issue-removeitem-and-clear-not-working\r\n\r\nWe use localforage for data storage in our cordova-based hybrid mobile application. As a part of a cleanup operation, we used localforage.clear() to remove all the stored data. The data is not getting cleaned up. We see this issue both in devices and ios simulator. In ios simulator, we debugged this using the safari develop tools. After the cleanup operation, we still see the data in \"Resources > Databases\".\r\n\r\nIn another part of the application, we tried to remove a single item using removeItem(). That also did not work.\r\n\r\nTherefore both clear() and removeItem() method of localforage is not working in the hybrid mobile application.\r\n\r\nThe interesting point is: When we ran this application in our desktop, the same clean up operations are working fine.\r\n\r\nNOte: We use indexedDB as the storage technology behind the localforage.\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/localForage/issues/comments/78106491","html_url":"https://github.com/mozilla/localForage/issues/179#issuecomment-78106491","issue_url":"https://api.github.com/repos/mozilla/localForage/issues/179","id":78106491,"user":{"login":"tofumatt","id":90871,"avatar_url":"https://avatars.githubusercontent.com/u/90871?v=3","gravatar_id":"","url":"https://api.github.com/users/tofumatt","html_url":"https://github.com/tofumatt","followers_url":"https://api.github.com/users/tofumatt/followers","following_url":"https://api.github.com/users/tofumatt/following{/other_user}","gists_url":"https://api.github.com/users/tofumatt/gists{/gist_id}","starred_url":"https://api.github.com/users/tofumatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tofumatt/subscriptions","organizations_url":"https://api.github.com/users/tofumatt/orgs","repos_url":"https://api.github.com/users/tofumatt/repos","events_url":"https://api.github.com/users/tofumatt/events{/privacy}","received_events_url":"https://api.github.com/users/tofumatt/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T17:39:00Z","updated_at":"2015-03-10T17:39:00Z","body":"Are you explicitly forcing IndexedDB? localForage shouldn’t use it in Cordova, but will on Chrome/Firefox. I would have thought Cordova was always using WebSQL.\n\nCould you send a test case to try in cordova/desktop/etc. so I can reproduce the issue?\n"}}