Data Persistence Through Lens Update (Persistent Data)
Hey Lens Community!
I'm working on a lens which will eventually need persistent data, and I was wondering if I update the lens to fix a bug or update graphics, will the persistent data in the user's phone be cleared?
The data is integral to my lens; I believe I have a solution if it does clear on an update, however it is more complex, and unnecessarily so if the data does not clear.
Just wanted to check before I coded one way or the other
Thank you all in advance! I appreciate it :)
hi furgfury12
The data doesn't get clear even if user get out / in lent
any way that is the goal of it
to clear data add the following line
store.clear();
i hope that helped
Cheers.
Hi Fungfury,
Just Me is correct, the data should stay. The data you stored will be connected to the Lens ID, so as long as you submit your Lens to the same Snapcode it will keep the storage.
Thank you both!
Jonathan