Questions tagged [offline-caching]

Offline caching typically means storing locally the data obtained from a remote service to make it possible to browse the data even when there is no connection to the storage.

The details of the implementation depend on actual needs of the application; however, in any implementation there is a local cache of data obtained from the service, so some requests for the remote data may succeed in that cache. It depends on the application logic how the cache is updated, and whether and how the user may control that.

A good example of an application that uses offline caching is a desktop e-mail client. It downloads all new mail from the server to the user's computer during the sync session; the user may browse the mail and write the replies; the outgoing mail will be sent when the application perfoms the next sync.

714 questions
7
votes
0 answers

How to implement Service Workers in an AngularJS application for offline experience

I am trying to implement a service worker in one of my AngularJS apps. Based on the tutorials (mostly MDN), I have come up with the following implementation to merge it with AngularJS. First, since app.run() seems to be the correct place. I have in…
7
votes
2 answers

AVAssetDownloadDelegate methods for HLS caching not getting called

I have followed the tutorial given here for HLS caching, but the control never reaches to any of the delegates ( of AVAssetDownloadDelegate ). Am I missing anything? Here is code I wrote - (void)setupAssetDownloader { NSURL *assetURL = [NSURL…
iOS Monster
  • 2,099
  • 1
  • 22
  • 49
7
votes
3 answers

How can I setup Android Studio so I can compile when offline (disconnected from the internet)

I was working in androidstudio today and my builds started failing. To my surprise, I had lost my internet connection and could no longer build my code. build.gradle file contains the following: buildscript { repositories { …
Noah
  • 15,080
  • 13
  • 104
  • 148
7
votes
1 answer

Best practice to sync webservice with offline storage on iOS

I have been working on a few iOS applications that talk to a REST API on the web server and than sync some data down for offline usage. The app then stores data locally if network connection is not available and than syncs with backend whenever the…
Obaid
  • 4,328
  • 9
  • 42
  • 42
6
votes
1 answer

Offline maps on PhoneGap using OpenLayers and TileCache

Is there a good tutorial on how to pre-cache a known part of a map using TileCache, store them on the PhoneGap mobile app database and load them up using OpenLayers? I went through many tutorials and still I haven't figured a way out to do all…
6
votes
2 answers

Locally Store Images Loaded with Coil?

So I'm using Coil image loading library to load images from an API by specifying the image URL. However when there is no internet connection I want to be able to see those images in my app. Is there any support for that kind of thing in Coil library…
Stefan
  • 2,829
  • 5
  • 20
  • 44
6
votes
1 answer

Show Google maps offline via service worker.

Is there a way to show google maps via the service worker while offline. I've built a progressive web app that stores all the content and data in the cache via the service worker so it can be accessed offline after use but for the life of me i cant…
6
votes
1 answer

Service Worker failure - Redirected response while RedirectMode is not "follow"

Browser: Firefox 58.0.2 (64-bit) I'm trying to write a very simple service worker to cache content for offline mode, following the guidance here and here. When I load the page the first time, the service worker is installed properly. I can confirm…
Ryan Griggs
  • 2,457
  • 2
  • 35
  • 58
6
votes
3 answers

Flutter: Pre-load data into Firestore local cache on the first load

I've implemented Cloud Firestore into my Flutter app and encountered this problem: if there's no network connection on the very first load of the app (after installation), no data is shown. My question is: How to make so that the data from…
Darkhan
  • 2,888
  • 5
  • 20
  • 30
6
votes
2 answers

xamarin forms azure mobile apps slow sync

I'm using Azure Mobile App with Xamarin.Forms to create an offline capable mobile app. My solution is based on https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/chapter3/client/ Here is the code that I use for offline sync…
6
votes
2 answers

Service Worker reload page on cache update

I am using React+Service Worker+offline-plugin to create a Service Workerwith persistent caching for the website. I want to tell the user when a new version is stored in cach and suggest to refresh the page but I don't know how to reference the…
Avi Zloof
  • 2,923
  • 4
  • 22
  • 28
6
votes
2 answers

Store client-side data, making it available to a service worker

In my node.js chat app, I want to save chat data in offline mode and push notification when online. Basic chat app is done. I'm using ws node module for server code. In client side code, I want to use service worker for storing offline data. I have…
user2013
  • 538
  • 5
  • 14
6
votes
5 answers

How to store 40.000 images using HTML5 or Phonegap?

I have searched a long time for a way to store a large number of images in HTML5, or access them stored locally and display them. The application is a product ordering and catalog, like an e-commerce web site but for bulk orders, not final clients,…
Astronaut
  • 6,691
  • 18
  • 61
  • 99
5
votes
1 answer

Offline map using mapsforge in android

How can i implement offline map in android. I tried it with mapsforge library. It does not provides binary map file for Wisconsin state. So How can create my own map binary file ? Thanks in advance.
Nandlal Virani
  • 674
  • 4
  • 13
  • 24
5
votes
1 answer

Use NSURLConnection cache when device is offline

In an NSOperation subclass, I am using the following code to download an xml-file from our server, and then later parse it: NSURLRequest * request = [NSURLRequest requestWithURL:[NSURL URLWithString:url] …
vtim
  • 101
  • 6