# \[Solved\] Variable value disappears after navigating to next screen

**URL:** <https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [July 24, 2020, 12:12am UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455 "2020-07-24T00:12:35Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![KirkVanHouten](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kirkvanhouten/32/69771_2.png) [@KirkVanHouten](https://community.thunkable.com/u/KirkVanHouten)\
**Post date:** [July 27, 2020, 12:27pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/53 "2020-07-27T12:27:01Z")

</div>

Greetings, recently having solved the problem of the live, I was able to finish updating my app, download it on each device and everything is fine. but in the first run of the app, local variables don’t work until the second run, (tested on One Plus7 android 10 and IPad 6th Gen with ios 13.4.5) and it also has problems when recovering some data from firebase (only in iOs)  
previously it worked properly.  
I hope this information helps you to move forward so that I can publish my update. 🙃

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 27, 2020, 1:07pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/57 "2020-07-27T13:07:06Z")

</div>

> local variables don’t work

What do you call local variables and where do they not work? I have both local and global variables working. If variables don’t work, you can use components instead.

---

<div class="post-metadata">

**Author:** ![gobassky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gobassky/32/77019_2.png) [@gobassky](https://community.thunkable.com/u/gobassky)\
**Post date:** [July 27, 2020, 1:31pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/59 "2020-07-27T13:31:00Z")

</div>

[https://x.thunkable.com/copy/de3b030670fe788c221849fe180339da](https://x.thunkable.com/copy/de3b030670fe788c221849fe180339da)

it worked at my end. I only changed your variable from “app” to “stored”…

---

<div class="post-metadata">

**Author:** ![darren](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/darren/32/69854_2.png) [@darren](https://community.thunkable.com/u/darren)\
**Post date:** [July 27, 2020, 9:11pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/60 "2020-07-27T21:11:08Z")

</div>

All, this issue has been confirmed as resolved and closed on github:

> <https://github.com/thunkable/thunkable-issues/issues/610>
>
> Platform
> ✕ Web App
> Steps to Reproduce
> https://x.thunkable.com/copy/5342a5845580e4ba8b8c12f4b14b463b
> Launch in Web Preview
> Look at Label
> Expected Behavior
> Should show Changed Value
> Actual Behavior
> Shows Initial Value

---

<div class="post-metadata">

**Author:** ![kizzy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kizzy/32/76421_2.png) [@kizzy](https://community.thunkable.com/u/kizzy)\
**Post date:** [July 27, 2020, 9:16pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/61 "2020-07-27T21:16:56Z")

</div>

his is not completely solved i am still getting it missing after first download have to close and open back up app it shows

---

<div class="post-metadata">

**Author:** ![penny](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@penny](https://community.thunkable.com/u/penny)\
**Post date:** [July 27, 2020, 11:45pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/62 "2020-07-27T23:45:42Z")

</div>

Hi Dom and Darren,  
Just tried my mini app litmus test and yep, it appears that variables ARE maintaining values between screen changes now.  
Thanks to you and the team for fixing it.  
🙂

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 28, 2020, 6:43am UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/63 "2020-07-28T06:43:48Z")

</div>

To transfer data between screens, you can use a block, such as Alert.setTitle and Alert.getTitle.

---

<div class="post-metadata">

**Author:** ![KirkVanHouten](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kirkvanhouten/32/69771_2.png) [@KirkVanHouten](https://community.thunkable.com/u/KirkVanHouten)\
**Post date:** [July 28, 2020, 10:23am UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/64 "2020-07-28T10:23:32Z")

</div>

In android the application works 100% but in iOS 13 the first execution does not take the variables and it is not taking data from firebase (things that did work)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [July 28, 2020, 11:00am UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/65 "2020-07-28T11:00:55Z")

</div>

> [@KirkVanHouten](#):
>
> in iOS 13 the first execution does not take the variables and it is not taking data from firebase (things that did work)

Can you share a screenshot of the blocks that are causing your problems @KirkVanHouten? Just want to confirm whether or not this is related to the originally reported issue.

Thanks.

* * *

> [@kizzy](#):
>
> i am still getting it missing after first download have to close and open back up app it shows

Likewise @kizzy, can you send us a screenshot of which blocks are not working for you?

---

<div class="post-metadata">

**Author:** ![kizzy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kizzy/32/76421_2.png) [@kizzy](https://community.thunkable.com/u/kizzy)\
**Post date:** [July 28, 2020, 12:59pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/66 "2020-07-28T12:59:50Z")

</div>

![rgt](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/5/354576340c1568364b1097aeea9f4b29163299e5.png)

it works while live test but is after the app is downloaded

first load of the app nothing shows close open back the app it shows

---

<div class="post-metadata">

**Author:** ![KirkVanHouten](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kirkvanhouten/32/69771_2.png) [@KirkVanHouten](https://community.thunkable.com/u/KirkVanHouten)\
**Post date:** [July 28, 2020, 1:01pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/67 "2020-07-28T13:01:47Z")

</div>

I had to change the variables from “app” to “stored” so that it could work on iOs. but Firebase problem persists, GET doesn’t work. These blocks that I attach when I run it with android works but not on ios. and before if it worked.!

Edit: Solved the firebase, the problem was that the PUSH ID of the Ipad where I was testing did not have any stamp in the database, I confused it with the userID. my apologies!

---

<div class="post-metadata">

**Author:** ![einsamkeitvelazqueza](https://avatars.discourse-cdn.com/v4/letter/e/90ced4/32.png) [@einsamkeitvelazqueza](https://community.thunkable.com/u/einsamkeitvelazqueza)\
**Post date:** [July 26, 2020, 12:02am UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/68 "2020-07-26T00:02:32Z")

</div>

I am working with variables to save different values ​​but these values ​​will not be saved, the app worked fine days ago

---

<div class="post-metadata">

**Author:** ![penny](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@penny](https://community.thunkable.com/u/penny)\
**Post date:** [July 26, 2020, 5:06am UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/69 "2020-07-26T05:06:57Z")

</div>

The Thunkable team are working on this. But, they are probably off work on the weekend.

---

<div class="post-metadata">

**Author:** ![kizzy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kizzy/32/76421_2.png) [@kizzy](https://community.thunkable.com/u/kizzy)\
**Post date:** [July 28, 2020, 2:00pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/70 "2020-07-28T14:00:16Z")

</div>

not working at all for me my app is in testflight if you want to see my issue  
evey screen that the variable are on shows nothing  
 ![q](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/9/49ca845604ae14d4ef7e33a4e1eacbe14548962e.png)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [July 28, 2020, 2:00pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/71 "2020-07-28T14:00:47Z")

</div>

@einsamkeitvelazqueza - this should be working again now. Can you try it out and let us know?

Thanks.

---

<div class="post-metadata">

**Author:** ![kizzy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kizzy/32/76421_2.png) [@kizzy](https://community.thunkable.com/u/kizzy)\
**Post date:** [July 28, 2020, 3:00pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/72 "2020-07-28T15:00:56Z")

</div>

i am at a lost as to what to do still not working

---

<div class="post-metadata">

**Author:** ![aminloungoua](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@aminloungoua](https://community.thunkable.com/u/aminloungoua)\
**Post date:** [July 28, 2020, 10:46pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/73 "2020-07-28T22:46:24Z")

</div>

Try to make your variables as stored variables. Normally it will be saved automatically on all screens.

---

<div class="post-metadata">

**Author:** ![kizzy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kizzy/32/76421_2.png) [@kizzy](https://community.thunkable.com/u/kizzy)\
**Post date:** [July 29, 2020, 2:41am UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/74 "2020-07-29T02:41:11Z")

</div>

Thanks! that worked  
but then my audio stopped playing back that is secondary problem

---

<div class="post-metadata">

**Author:** ![einsamkeitvelazqueza](https://avatars.discourse-cdn.com/v4/letter/e/90ced4/32.png) [@einsamkeitvelazqueza](https://community.thunkable.com/u/einsamkeitvelazqueza)\
**Post date:** [July 30, 2020, 10:37pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/75 "2020-07-30T22:37:06Z")

</div>

Now the variables work well but when generating my apk on some devices it says it has errors, at first I thought it was my programming but later I generated an apk of an app that worked well and it doesn’t compile anymore

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [July 30, 2020, 10:39pm UTC](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455/76 "2020-07-30T22:39:57Z")

</div>

> [@einsamkeitvelazqueza](#):
>
> when generating my apk on some devices it says it has errors

Hey @einsamkeitvelazqueza - can you copy/pasted those errors here so we can see what you’re seeing please?

Thanks!

[Previous page](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455.md?page=2)

[Next page](https://community.thunkable.com/t/solved-variable-value-disappears-after-navigating-to-next-screen/698455.md?page=4)
