Issue
I am developing a cordova app which has a News section. I am fetching the news from server in JSON. Each news has about 10 images. When I am viewing the news in app it is taking space in the localstorage. It seems all the images are automatically downloading to the local storage. Is there any way not to download the images to the local storage? I need the user to only view the image from network.
Solution
You cant stop from downloading but you can delete automatically when app is closed with deleteLocalStorage
keyword, check the below link about localStorage https://cordova.apache.org/docs/en/2.7.0/cordova/storage/localstorage/localstorage.html
Answered By - NGB
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.