0

I am writing a hybrid app (Cordova 6.5, Angular 1.5, Ionic 1.3, HTML5) that will run on Android. This kind of app works in WebView.

My app has a few images bundled with the app and most of the data will be called via HTTP and some of it will be stored in localStorage for offline mode.

I have seen that it's possible to manually write images etc. into the app cache (https://developer.android.com/guide/topics/data/data-storage.html), but I am not doing this myself in my app.

I am wondering what kind of data does the Android OS store in the app cache by default. I hope this does not include the html5 localStorage.

closed as off-topic by bmdixon, Andy Yan, Android Quesito, iBug, xavier_fakerat Oct 7 '17 at 7:11

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about writing and publishing Android apps, writing custom ROMs, and other topics that are primarily of concern to developers are off-topic. Consider taking advantage of other resources that may be appropriate for your question." – bmdixon, Andy Yan, Android Quesito, iBug, xavier_fakerat
If this question can be reworded to fit the rules in the help center, please edit the question.

2

The app cache helps the app run faster. Every time an app loads some data (like images and so on) it gets stored in the app cache. If the user opens the app again, this data is not reloaded. It is taken from the app cache instead. This makes the app faster. App cache though does not persist and is erased every time you restart your phone.

In the localStorage though, you store things that the app will need to remember even when the phone restarts. For example what is your progress in a game, some app parameters etc.

See more about app cache here.

Not the answer you're looking for? Browse other questions tagged or ask your own question.