Preferences Service
Component Detail
Service Layer
medium complexity
mobile
0
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Coordinates reading and writing user preferences across local storage and the backend. Applies side effects such as toggling biometric unlock, switching language, and clearing cached data. Reconciles local and remote state so changes follow the user across devices.
preferences-service
Sources & reasoning
Source explicitly lists Settings and preferences as a mobile screen accessible from the hamburger menu, which is exactly the App Settings & Preferences feature in the Home & Navigation area.
-
docs/source/likeperson.md · line 215-216Bottom nav with 5 tabs: Home, Contacts, Add ... Settings accessible from hamburger menu
-
docs/source/likeperson.md · line 223Settings and preferences
Responsibilities
- Load and merge preferences from local store and backend on startup
- Persist preference changes locally and sync them to the backend
- Apply runtime effects for language, accessibility, and biometric settings
- Trigger cache clearing and sign-out flows on demand
- Expose the current enabled-module set to gate preference sections
Interfaces
getPreferences(): Preferences
updatePreference(key, value): Promise<void>
syncWithBackend(): Promise<void>
clearCachedData(): Promise<void>
signOut(): Promise<void>
Related Data Entities (2)
Data entities managed by this component