STORED variables not kept after app quit


When I use a STORED variable in my app it works just fine between screens and even CLOSING the app. The problem is when the app QUITS. I lose all my variables. The app storage still shows 2mb in data. I’m wondering if the initialize variable is clearing the data after a cold app start.

1 Like

Stored variables are saved under the app cache/app data so you will lose the data if you uninstall/reinstall or when you clear the app catche/data or when you change App ID in the project screen

I understand that process. The problem is when the device reboots, or when the app is FORCE closed. At no time is the app data cleared. If I simply go back to the device home screen and back to my app again is the app variables retained.

This is not the way to use stored variables- image

You need to use this block - image

1 Like

What’s the difference between the two

The one which you are using that initializes a new stored variable with the value stored in the first variable. And if you use the second one it just changes the value of the variable (it doesn’t initializes it again)
Hope this helps

Bingo! Thanks it works. Thank you very much

1 Like