Follow

Local storage and databases

By default, local storage and storage API databases (like WebSQL) are disabled for the page control. If you want to enable them, you must provide a writable directory to be used by the database. We recommend a path in the cache directory - something like this:

    String path = StringUtils.stringByAppendingPathComponent(FileManager.cachesDirectoryPath(), String.format("WebLocalStorage/%s", document.uniqueName()));
    pageControl.enableStorage(path);

It is up to you to manage the storage (for example, removing it if the document is removed).

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk