{"action":"created","issue":{"url":"https://api.github.com/repos/google/WebFundamentals/issues/3466","repository_url":"https://api.github.com/repos/google/WebFundamentals","labels_url":"https://api.github.com/repos/google/WebFundamentals/issues/3466/labels{/name}","comments_url":"https://api.github.com/repos/google/WebFundamentals/issues/3466/comments","events_url":"https://api.github.com/repos/google/WebFundamentals/issues/3466/events","html_url":"https://github.com/google/WebFundamentals/issues/3466","id":178742171,"number":3466,"title":"Working with Web Storage Quotas (Guide)","user":{"login":"addyosmani","id":110953,"avatar_url":"https://avatars.githubusercontent.com/u/110953?v=3","gravatar_id":"","url":"https://api.github.com/users/addyosmani","html_url":"https://github.com/addyosmani","followers_url":"https://api.github.com/users/addyosmani/followers","following_url":"https://api.github.com/users/addyosmani/following{/other_user}","gists_url":"https://api.github.com/users/addyosmani/gists{/gist_id}","starred_url":"https://api.github.com/users/addyosmani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addyosmani/subscriptions","organizations_url":"https://api.github.com/users/addyosmani/orgs","repos_url":"https://api.github.com/users/addyosmani/repos","events_url":"https://api.github.com/users/addyosmani/events{/privacy}","received_events_url":"https://api.github.com/users/addyosmani/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/WebFundamentals/labels/devsite-hackathon","name":"devsite-hackathon","color":"5319e7"},{"url":"https://api.github.com/repos/google/WebFundamentals/labels/migrate-content","name":"migrate-content","color":"fbca04"},{"url":"https://api.github.com/repos/google/WebFundamentals/labels/P1","name":"P1","color":"ef5350"},{"url":"https://api.github.com/repos/google/WebFundamentals/labels/type-Content","name":"type-Content","color":"3f51b5"}],"state":"open","locked":false,"assignee":{"login":"agektmr","id":218144,"avatar_url":"https://avatars.githubusercontent.com/u/218144?v=3","gravatar_id":"","url":"https://api.github.com/users/agektmr","html_url":"https://github.com/agektmr","followers_url":"https://api.github.com/users/agektmr/followers","following_url":"https://api.github.com/users/agektmr/following{/other_user}","gists_url":"https://api.github.com/users/agektmr/gists{/gist_id}","starred_url":"https://api.github.com/users/agektmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agektmr/subscriptions","organizations_url":"https://api.github.com/users/agektmr/orgs","repos_url":"https://api.github.com/users/agektmr/repos","events_url":"https://api.github.com/users/agektmr/events{/privacy}","received_events_url":"https://api.github.com/users/agektmr/received_events","type":"User","site_admin":false},"assignees":[{"login":"agektmr","id":218144,"avatar_url":"https://avatars.githubusercontent.com/u/218144?v=3","gravatar_id":"","url":"https://api.github.com/users/agektmr","html_url":"https://github.com/agektmr","followers_url":"https://api.github.com/users/agektmr/followers","following_url":"https://api.github.com/users/agektmr/following{/other_user}","gists_url":"https://api.github.com/users/agektmr/gists{/gist_id}","starred_url":"https://api.github.com/users/agektmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agektmr/subscriptions","organizations_url":"https://api.github.com/users/agektmr/orgs","repos_url":"https://api.github.com/users/agektmr/repos","events_url":"https://api.github.com/users/agektmr/events{/privacy}","received_events_url":"https://api.github.com/users/agektmr/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-09-22T22:58:26Z","updated_at":"2016-09-29T07:10:07Z","closed_at":null,"body":"Old article:\r\nhttp://www.html5rocks.com/en/tutorials/offline/quota-research/ (this was A+ at the time. we don't currently have anything more recent in /web)\r\n\r\nRecent related one:\r\nhttps://developers.google.com/web/updates/2011/11/Quota-Management-API-Fast-Facts?hl=en\r\n\r\nThere's also more info on Chrome's Quota nuance over in: https://docs.google.com/presentation/d/11CJnf77N45qPFAhASwnfRNeEMJfR-E_x05v1Z6Rh5HA/edit\r\n\r\nPouchDB quota stats from https://pouchdb.com/faq.html:\r\n\r\n> IDB: Though Firefox has no upper limit besides disk space, if your application wishes to store more than 50MB locally, Firefox will ask the user using a non-modal dialog to confirm that this is okay.\r\n> \r\n> Chrome also uses IndexedDB, and it determines the amount of storage available on the user’s hard drive and uses that to calculate a limit.\r\n> \r\n> Opera 15+ shares a codebase with Chromium/Blink, and behaves similarly.\r\n> \r\n> Internet Exporer 10+ has a hard 250MB limit, and will prompt the user with a non-modal dialog at 10MB.\r\n> \r\n> Mobile Safari on iOS has a hard 50MB limit, whereas desktop Safari has no limit. Both will prompt the user with a modal dialog if an application requests more than 5MB of data, at increments of 5MB, 10MB, 50MB, 100MB, etc. Some versions of Safari have a bug where they only let you request additional storage once, so you'll need to request the desired space up-front. PouchDB allows you to do this using the size option.\r\n> \r\n> iOS Web Application, a page saved on the homescreen behaves different than apps in Mobile Safari (at least from iOS 9.3.2+). No specifics are published online by Apple, but WebSQL storage seems not limited to 50mb and there will not be any prompts when requesting data storage. Use <meta name=\"apple-mobile-web-app-capable\" content=\"yes\"> in your html header and use Add to Home Screen in the share menu of Safari. Please note, IndexedDB is not available, so FruitDown won't work. It seems there is different behaviour for different models of iPad and iPhone. You can check your mileage using the storage abuser, which you can Add to Home Screen on your device. Caveat: when iOS is running low on storage space, the OS might decide to delete all data without any notice or warning to the end user. Be sure to use devices with plenty of spare space, or your users will lose unsynced data.\r\n> \r\n> Android works the same as Chrome as of 4.4+ (IndexedDB), while older versions can store up to 200MB (WebSQL).\r\n> \r\n> In PhoneGap/Cordova, you can have unlimited data on both iOS and Android by using the SQLite Plugin.\r\n> \r\n\r\nMy recent post with some quota related bits:\r\nhttps://medium.com/dev-channel/offline-storage-for-progressive-web-apps-70d52695513c#.qi4hx1qwg\r\n\r\ncc @drufball. Initially assigning to @agektmr as he's had an interest in storage Quota in the past and wrote the original guide linked to above."},"comment":{"url":"https://api.github.com/repos/google/WebFundamentals/issues/comments/250388213","html_url":"https://github.com/google/WebFundamentals/issues/3466#issuecomment-250388213","issue_url":"https://api.github.com/repos/google/WebFundamentals/issues/3466","id":250388213,"user":{"login":"addyosmani","id":110953,"avatar_url":"https://avatars.githubusercontent.com/u/110953?v=3","gravatar_id":"","url":"https://api.github.com/users/addyosmani","html_url":"https://github.com/addyosmani","followers_url":"https://api.github.com/users/addyosmani/followers","following_url":"https://api.github.com/users/addyosmani/following{/other_user}","gists_url":"https://api.github.com/users/addyosmani/gists{/gist_id}","starred_url":"https://api.github.com/users/addyosmani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addyosmani/subscriptions","organizations_url":"https://api.github.com/users/addyosmani/orgs","repos_url":"https://api.github.com/users/addyosmani/repos","events_url":"https://api.github.com/users/addyosmani/events{/privacy}","received_events_url":"https://api.github.com/users/addyosmani/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T07:10:06Z","updated_at":"2016-09-29T07:10:06Z","body":"Awesome. We super appreciate it!\nOn Wed, Sep 28, 2016 at 9:58 PM Eiji Kitamura <notifications@github.com>\nwrote:\n\n> FYI, I'm testing this week. Will need sometime to document them though.\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/google/WebFundamentals/issues/3466#issuecomment-250370433>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AAGxaZf6Uk7UtFKvEbUCeUhpDuzfMjlNks5qu0VqgaJpZM4KEcxe>\n> .\n>\n"}}
{"actor":{"display_login":"addyosmani"}}