offline-caching

How to implement offline capable Single Page Application with Breeze.js and HTML5 local storage

心不动则不痛 提交于 2019-12-21 05:00:22
问题 I have working Single Page Application using Breeze.js for Data Access. It uses the Breeze.js to execute queries against the local cache and the data is requested only once at start up. Only the data updates are posted back on the server afterwards. I am looking for a solution to make the application connection aware. If the mobile device does not have internet connection the changes will be saved locally with Breeze.js and HTML5 local storage. When the mobile device is back online the

strange behaviour with cache.manifest / offline usage of web app saved to home-screen on ipad ios6

[亡魂溺海] 提交于 2019-12-20 15:23:42
问题 I just discovered some strange behaviour on iPad with the new iOS 6. I'm testing a web app for offline usage. The web app is no more than a static website with a cache manifest, so no special frameworks like sencha touch or tools like phnoegap are used. Just HTML, CSS and JavaScript and a cache.manifest. The App worked fine before: I could save the website to the home screen. When I opened it from there, all the data would be downloaded for caching. At the end of the download the pop-up would

How to develop an offline-first native Android app

耗尽温柔 提交于 2019-12-20 10:42:47
问题 We are developing a native Android app (iOS and web to follow) where users can collaboratively create an album. We want as seamless as possible experience when device is not able to connect with server. Something like mentioned in this Hoodie blog but Hoodie is right now for Web and iOS and we are looking for Android right now. Problem Maintaining data of albums, friends, pictures (URL/local, not Bitmap) on Client side. Being able to sync offline create/update operations to server at later

how to fetch data from local json file?

冷暖自知 提交于 2019-12-19 10:22:35
问题 I created a json file locally. I can view that in data>data>com.example.storage>files>filename.json. Using this, I want to fetch all the text values locally & download all images and save it in SD card from Image URL which is available in the json file. And in offline mode Itself I can load all the text values from json file as well as images from SD card. Please let me know if this idea will work out or not. If not Please suggest some other way to do this. The task is using local JSON file I

Android ExoPlayer - downloading video (non DASH / HLS) and streaming at the same time

孤者浪人 提交于 2019-12-18 15:02:23
问题 I would like to download a video that is streaming in ExoPlayer. As an aside and even before using ExoPlayer I downloaded a file from an input stream provided by HttpURLConnection and played the file from local storage. This is ok, however it does not solve my problem of simultaneous streaming and caching. ExoPlayer also provides a caching system and these seem to work only for DASH or HLS stream types. I am using none of these and want to cache mp4 with the ExtractorRendererBuilder . (This

Android ExoPlayer - downloading video (non DASH / HLS) and streaming at the same time

 ̄綄美尐妖づ 提交于 2019-12-18 15:02:21
问题 I would like to download a video that is streaming in ExoPlayer. As an aside and even before using ExoPlayer I downloaded a file from an input stream provided by HttpURLConnection and played the file from local storage. This is ok, however it does not solve my problem of simultaneous streaming and caching. ExoPlayer also provides a caching system and these seem to work only for DASH or HLS stream types. I am using none of these and want to cache mp4 with the ExtractorRendererBuilder . (This

AngularJS/PouchDB app stops syncing to CouchDB when cache.manifest added

人盡茶涼 提交于 2019-12-18 12:37:43
问题 I have a single page web app written using AngularJS. It uses PouchDB to replicate to a CouchDB server and works fine. The problem comes when I try to convert the webpage to be available offline by adding cache.manifest. Suddenly ALL the replication tasks throw errors and stop working, whether working offline or online. In Chrome it just says "GET ...myCouchIP/myDB/?_nonce=CxVFIwnEJeGFcyoJ net::ERR_FAILED" In Firefox it also throws an error but mentions that the request is blocked - try

Application Cache or Service Workers - which to use in 2016/Q2?

孤人 提交于 2019-12-18 10:50:14
问题 Quick question for discussion really, as I wanted to have input from different people. I am in the process of developing a web page app that must be available offline. Now to do this, as I understand it, you would go about using either the application caching feature or by using service workers. However, here is the conundrum I have. When researching the application cache, the MDN clearly states: Deprecated: This feature has been removed from the Web standards. Though some browsers may still

Improve Firestore Offline cache - Android

被刻印的时光 ゝ 提交于 2019-12-18 09:40:02
问题 So half of my application relies quite a bit on Firestore. Sometimes, it takes quite a long time, like 5000ms or more to load my documents. If it was images or something else maybe I'd understand but it's mainly strings or Ints... Any ideas on how I could improve this? Thanks EDIT: db.collection("usersAuth/${FirebaseAuth.getInstance().uid!!}/KitLists").get().addOnSuccessListener { snapshot -> for (document in snapshot.documents) { val data = document val kitName = data.id firstKitList.add

HTML5 offline caching

 ̄綄美尐妖づ 提交于 2019-12-17 17:29:09
问题 I've read the following Mozilla Developer article that explains how to implement HTML 5 offline resource caching in web apps. I've tried testing this locally: added the mime type to the list, created the manifest file, changed my doctype to the HTML 5 doctype, specified the manifest attribute and the correct path on the HTML element--but still I don't see the manifest file being consumed by Firefox at all. I've also checked the access logs on Apache and didn't see any requests for the