32
Views
2
Comments
is local storage can set expiration date? and how to do.
Application Type
Mobile

I want to set expiration date on local storage Mobile.

Example: Binary user_img have value binarydata on current day then next 7 day set it to default or clear value

2022-02-28 05-37-25
Ronny

Hi Pratya,

In my case, i have offline data sync upon user resume or upon login that delete the outdated local storage. I add a dateCreated in my local storage entity.

Hope it helps

2021-01-04 08-13-48
Toto
 
MVP

Hi,


I think you must use logic for this.

My suggestion is put the logic for checking date and delete in the "Application Ready" Client action, so when the app is opened / move to foreground, the logic will run and do validate and delete.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.