Idea
Discussion

Local key-value storage API for Mobile Freedom UI SDK

Hello,
I would like to suggest adding a simple local key-value storage API to the Mobile Freedom UI SDK, similar to the standard web localStorage.
Currently, if a developer wants to store some technical data only on the device, scoped to the current user, there is no direct way to do it. The only supported option is to create a dedicated object with a relation to the user, add a filter on read, and configure access rights. This works, but it is more complex than needed, and the data is also written to the server database during synchronization, even if it is not really needed there.

A simple API like this would solve the problem:

localStorage.setItem('someSetting', { ... });
const value = localStorage.getItem('someSetting');

This would allow developers to store temporary or technical data directly on the device, without creating extra objects and without sending this data to the server.

Thank you for considering this idea!

0 comments
Show all comments