JavaScript KB Storage (putStringValue, etc)

User4141 3 months ago in Application • updated by Richard 3 months ago 1

Few questions about internal KB Storage (put/get String Value) (cannot find answers in docs):

1) What is storage size limit?

2) Is content survive KB restart / Android reboot?

3) Scope - is all data available from all domains?

4) Cannot see, removeStringValue() is possible to add it in future?



Please see responses below.

  1. There isn't an actual limit, but values are just stored in an xml file provided by the Android Shared Preferences API. It's designed to store Kb's of data and nothing more.
  2. Yes.
  3. Available from anywhere you can call the JS function.
  4. You can clear the value by using setValue(null)