Skip to content

Browser Based Offline Access

Jonathan Zhang edited this page Dec 12, 2018 · 6 revisions

Offline Community App

Browser-Based offline access tends to provide offline functionality to the community app making it a progressive web app that can also work on a flaky connection and even offline.

We will be using service workers API and service workers toolbox for making it work offline and indexed db would be used to save data offline in the browser

Project requirements

  • Login into community app offline
  • Caching all the static assets
  • Caching all the API requests to load data offline
  • Storing data in the browser when there is no internet connection
  • Synchronising it accordingly when online
  • Able to create client, groups, centers, update transactional data offline and sync it accordingly
  • Able to inform when user is in offline mode through UI
  • Adding Add to Home screen functionality

Tech stacks

  • Service workers
  • sw-toolbox
  • IndexedDB
  • Dexie.js (Wrapper for indexedDB)
  • sw-precache (may be )
  • Credential management API

Resources

Work Done

You can contact [email protected] with any queries.