S3 ‐ Local storage strategies - S3-G31-Kotlin-QueueHub/mobile-app-android GitHub Wiki
In our application, the use of local storage is essential for effectively implementing functionalities and enabling its use in offline scenarios. This ensures that users have uninterrupted access to the application and can view previous data about the queues and places visited.
Strategy used: Given that the application requires quick access, we propose using local storage to store relevant user information, such as login credentials and personal data, including name, email, and recently visited places.
Advantages of the proposed solution:
Reliability: Due to the use of local storage, users can access previous information about the queues they have made and the places visited without the need for an internet connection. This ensures they always have access to relevant data, even in offline environments.
Ease of transitioning to a connectivity scenario: Storing data in local storage allows users to quickly consult an establishment for which they wish to queue once they regain connection, without needing to reload information from the server.
Speed of access: Local storage offers faster access times compared to network requests, improving the user experience by allowing instant loading of previously stored data.
Data persistence: Local storage allows information, such as authentication data, to remain available even after the user closes the application or browser, meaning that personal and usage data is preserved over the long term.