Is there any way to handle caching and session handling Using Fetch?


I am trying to replicate session handling and cache handling in my mobile app.I got a link to do it using http module . But I am comfortable with Fetch. So is there any way to do it using Fetch ?


You can cache data using a variety of different storage containers:

  1. Local Storage (part of the default NS api)
  2. File Storage (read/write data)
  3. Sq-lite (nativescript plugin)
  4. CouchDB (nativescript plugin)
  5. Roll your own solution.

You need to elaborate more on what you are trying to achieve, because “session handling” is a very broad term.


Hi @karthikdhanya,

Did you find a solution?