The getLocalStorage action retrieves a stored value from the app’s local storage.
It allows you to access previously saved data — such as user preferences, app state, or temporary variables — for personalized and consistent experiences.
Function Signature
Superfans.actions.getLocalStorage("name")
Parameter
Type
Required
Description
Key
String
Yes
The key name of the stored value to retrieve. Example: "gender".
Structure of Response
Status
Response
Success
{ "status": "success", "message": "Successfully retrieved the value from local storage", "value": "retrieved-value" }