# Code not working when previewing App inside Thunkable Live

**URL:** https://community.thunkable.com/t/code-not-working-when-previewing-app-inside-thunkable-live/1241162
**Category:** Questions about Thunkable X
**Created:** [April 23, 2021, 11:39am UTC](https://community.thunkable.com/t/code-not-working-when-previewing-app-inside-thunkable-live/1241162 "2021-04-23T11:39:13Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![max.breitspf](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/max.breitspf/32/102664_2.png) [@max.breitspf](https://community.thunkable.com/u/max.breitspf)
#### Post date: [April 23, 2021, 11:39am UTC](https://community.thunkable.com/t/code-not-working-when-previewing-app-inside-thunkable-live/1241162/1 "2021-04-23T11:39:13Z")

</div>

Hi,  
I ran into a problem and could need some help from the community :-).

Problem is, that my app code is not running when viewing in Thunkable Live (on my Android Pixel 3a phone), but when running in the “Preview” mode or in the Browser “Live test” mode (on my Macbook) it’s working.

To make it more clear: When I press the 2Start" button in the thinkable Live app, nothing happens. But when I press the “Start” button in Preview or Live test mode on my Macbook, the code is executed and the rectangles in the bottom appear and disappear as coded.

Here my Share link for the app: [Thunkable](https://x.thunkable.com/copy/c46ad9a572fb50d56e0b8377f2845c31)

It’s my fist day playing around with Thunkable, so many thanks for all your help in advance!

---

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [April 23, 2021, 12:30pm UTC](https://community.thunkable.com/t/code-not-working-when-previewing-app-inside-thunkable-live/1241162/2 "2021-04-23T12:30:09Z")

</div>

This works fine on my iPhone with the latest version of Thunkable Live. There’s certainly nothing complicated going on there that shouldn’t just work.

I wonder if maybe you’re looking at stale code in Thunkable Live. On the iPhone, I find I often have to force quit and restart the Thunkable Live app before it’ll download recently changed code.

---

<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: [April 23, 2021, 1:11pm UTC](https://community.thunkable.com/t/code-not-working-when-previewing-app-inside-thunkable-live/1241162/3 "2021-04-23T13:11:07Z")

</div>

I checked his code on android 9 and 10 and it does not work on the phone. I have not looked at the code yet but want to affirm his findings.

---

<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: [April 23, 2021, 1:24pm UTC](https://community.thunkable.com/t/code-not-working-when-previewing-app-inside-thunkable-live/1241162/4 "2021-04-23T13:24:11Z")

</div>

I checked the project. You have set both Box left and Box right positions to **absolute**. There is a known issue with the visible property for absolute positioned objects. If you switch them back to relative you will find that your code runs as expected on Android devices.

---

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [April 23, 2021, 1:46pm UTC](https://community.thunkable.com/t/code-not-working-when-previewing-app-inside-thunkable-live/1241162/5 "2021-04-23T13:46:12Z")

</div>

Here’s some sample code in which the boxes appear and disappear - you’ll need to do more work to get them correctly laid out.

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

---

<div class="post-metadata">

### Author: ![max.breitspf](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/max.breitspf/32/102664_2.png) [@max.breitspf](https://community.thunkable.com/u/max.breitspf)
#### Post date: [April 26, 2021, 12:38pm UTC](https://community.thunkable.com/t/code-not-working-when-previewing-app-inside-thunkable-live/1241162/6 "2021-04-26T12:38:09Z")

</div>

Many, many thanks @catsarisky and @muneer for your prompt and helpful replies. That solved my issue! Great community support 🙂

---

<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, 1:25pm UTC](https://community.thunkable.com/t/code-not-working-when-previewing-app-inside-thunkable-live/1241162/7 "2024-11-08T13:25:05Z")

</div>


