Comment on page
There are various ways to store persistent data within your app.
Your app can store a user's settings in various ways. For each usecase, there's a best practice.
Most likely, you'll want to store settings per-device.
Most app-specific settings can be stored and retrieved through ManagerSettings. This enabled your app to save and retrieve any value that is JSON-serializable. App Settings are saved across app restarts, and are only deleted when your app is uninstalled.
It is generally discouraged to use custom HTML, because often app settings are better to be stored within a Device Store.
For non-JSON serializable data, e.g. binary files, the
/userdata/folder is writable on Homey Pro.
/userdata/is publicly available on
This allows for some nice usecases, but can also be a security risk! Be sure to keep your filenames unique so they cannot be guessed.
For example, when storing an image, don't name it
a656d380-c887-4d8b-9ee5-f89de7b65d01.jpgand keep the Image's name stored in the App Settings.