# Do stored variables get removed when an App is updated?

**URL:** <https://community.thunkable.com/t/do-stored-variables-get-removed-when-an-app-is-updated/872765>\
**Category:** Questions about Thunkable X\
**Created:** [October 4, 2020, 9:48am UTC](https://community.thunkable.com/t/do-stored-variables-get-removed-when-an-app-is-updated/872765 "2020-10-04T09:48:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [October 4, 2020, 9:48am UTC](https://community.thunkable.com/t/do-stored-variables-get-removed-when-an-app-is-updated/872765/1 "2020-10-04T09:48:40Z")

</div>

Wondering if any of you had published apps using stored variables and then sent out an update? Does the variable remain in the app when that happens or is it removed?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [October 4, 2020, 1:51pm UTC](https://community.thunkable.com/t/do-stored-variables-get-removed-when-an-app-is-updated/872765/2 "2020-10-04T13:51:17Z")

</div>

As long as **com.yourdomain.yourapp** has not been changed, the stored variables should be accessable.

I tested it in normal APK update.

---

<div class="post-metadata">

**Author:** ![Deluxe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deluxe/32/30016_2.png) [@Deluxe](https://community.thunkable.com/u/Deluxe)\
**Post date:** [October 6, 2020, 3:54pm UTC](https://community.thunkable.com/t/do-stored-variables-get-removed-when-an-app-is-updated/872765/3 "2020-10-06T15:54:26Z")

</div>

@muneer would that still be the case if you duplicate your project maintaining the same com.yourdomain.yourapp? I believe I read in a similar thread that if you duplicate a project, Android will reinitialise the stored variables when you update the app on the device.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [October 6, 2020, 4:30pm UTC](https://community.thunkable.com/t/do-stored-variables-get-removed-when-an-app-is-updated/872765/4 "2020-10-06T16:30:28Z")

</div>

I have never tried it and don’t see a reason to have same app from same developer twice. Unless I did not understand what you were trying to say.

---

<div class="post-metadata">

**Author:** ![Deluxe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deluxe/32/30016_2.png) [@Deluxe](https://community.thunkable.com/u/Deluxe)\
**Post date:** [October 6, 2020, 5:22pm UTC](https://community.thunkable.com/t/do-stored-variables-get-removed-when-an-app-is-updated/872765/5 "2020-10-06T17:22:31Z")

</div>

Scenario: You want to keep your app’s version history so before you work on a new version, you duplicate the existing version and begin editing the duplicate, adding new features, fixing bugs etc. The new duplicate is going to have a new Thunkable project ID (i.e. [https://x.thunkable.com/projects/1238418276498726334](https://x.thunkable.com/projects/1238418276498726334)) which will not be identical to the old version’s. As mentioned before, I think that I read in another thread that if the project ID is different, the new app version will be treated as “new” even if the **com.yourdomain.yourapp** app identifier will remain the same. That’s why I asked if you had the opportunity to test this scenario.

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [October 8, 2020, 1:09pm UTC](https://community.thunkable.com/t/do-stored-variables-get-removed-when-an-app-is-updated/872765/6 "2020-10-08T13:09:22Z")

</div>

From what I trialed, user input stored variables do remain on update.

So if you store text or something that a user inputs in a stored variable. If you update the app the information they entered will remain.

---

<div class="post-metadata">

**Author:** ![Deluxe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deluxe/32/30016_2.png) [@Deluxe](https://community.thunkable.com/u/Deluxe)\
**Post date:** [October 8, 2020, 1:27pm UTC](https://community.thunkable.com/t/do-stored-variables-get-removed-when-an-app-is-updated/872765/7 "2020-10-08T13:27:11Z")

</div>

@huntermclarkn even in the scenario I described?

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [October 8, 2020, 2:00pm UTC](https://community.thunkable.com/t/do-stored-variables-get-removed-when-an-app-is-updated/872765/8 "2020-10-08T14:00:27Z")

</div>

Not with a different project id, since it was just an app update it was with the same project id

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:23pm UTC](https://community.thunkable.com/t/do-stored-variables-get-removed-when-an-app-is-updated/872765/9 "2024-11-08T12:23:33Z")

</div>


