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:
- Local Storage (part of the default NS api)
- File Storage (read/write data)
- Sq-lite (nativescript plugin)
- CouchDB (nativescript plugin)
- Roll your own solution.
You need to elaborate more on what you are trying to achieve, because “session handling” is a very broad term.