# \[Solved\] Wait block waits infinitely?

**URL:** https://community.thunkable.com/t/solved-wait-block-waits-infinitely/563981
**Category:** Questions about Thunkable X
**Tags:** solved
**Created:** [April 23, 2020, 10:23pm UTC](https://community.thunkable.com/t/solved-wait-block-waits-infinitely/563981 "2020-04-23T22:23:24Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![mythi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mythi/32/70585_2.png) [@mythi](https://community.thunkable.com/u/mythi)
#### Post date: [April 23, 2020, 10:23pm UTC](https://community.thunkable.com/t/solved-wait-block-waits-infinitely/563981/1 "2020-04-23T22:23:24Z")

</div>

Hello! I have an issue with the wait block.

In my app, I have quite a few **alerts** , and what I have found is that if I do not add some sort of wait block between setting the alert message and title (I use blocks to set the title and message because I don’t want to make so many alert components), then it doesn’t update in time so sometimes it has the description of the last time the alert was supposed to be set.

So I started putting `wait .00000001 seconds` blocks in between setting the Title and Message. It did work, but only on my phone. When I tested it on my iPad and had my friends test it, it would just wait infinitely and so the alert would never show.

I’m pretty sure it is not because I set the wait time to be too low, at least on my iPad however long I set it to still made it freeze.

If anyone knows how to help with this or if the developers can fix this problem, it would be greatly appreciated!

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [April 24, 2020, 4:09am UTC](https://community.thunkable.com/t/solved-wait-block-waits-infinitely/563981/2 "2020-04-24T04:09:56Z")

</div>

Post a screenshot of your alert block rules.

I could be wrong but I think about 0.03 seconds is the least amount of time that a code cycle can take.

---

<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: [April 24, 2020, 9:52am UTC](https://community.thunkable.com/t/solved-wait-block-waits-infinitely/563981/3 "2020-04-24T09:52:04Z")

</div>

@mythi I’d agree with @tatiang here.

Can you try 0.1 to begin with and then halve it a couple of times until the delay is imperceptible to users, but still not crashing your iPad.

---

<div class="post-metadata">

### Author: ![teamwasei](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@teamwasei](https://community.thunkable.com/u/teamwasei)
#### Post date: [April 25, 2020, 12:27am UTC](https://community.thunkable.com/t/solved-wait-block-waits-infinitely/563981/4 "2020-04-25T00:27:06Z")

</div>

@domhnallohanlon and @tatiang thank you for responding so fast!

Here are some photos:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/9/b9191ecfdf2055047528e98f01ae608186116b97.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/1/61f7dda7bed1edd8f56a317977a0ca085a12fa10.png)  
I tried using your advice and changed the wait settings to 1 second and .1, but it still doesn’t work ☹

Oops, forgot to mention, this is the account I (@mythi) use with my team. Sorry if there’s confusion!

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [April 25, 2020, 2:22am UTC](https://community.thunkable.com/t/solved-wait-block-waits-infinitely/563981/5 "2020-04-25T02:22:48Z")

</div>

Can you either post a link to your project or post another screenshot that shows the bottom of the alert block area?

---

<div class="post-metadata">

### Author: ![mythi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mythi/32/70585_2.png) [@mythi](https://community.thunkable.com/u/mythi)
#### Post date: [April 25, 2020, 4:21am UTC](https://community.thunkable.com/t/solved-wait-block-waits-infinitely/563981/6 "2020-04-25T04:21:15Z")

</div>

Here is an extension of the second photo:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/f/4fdbd4be517ddeca75aee9e5fd5de45a3dda9e7d.png)

Here is a sign-in button that doesn’t work on my iPad:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/7/871dd4b33bcf1d6120798c5213f58784de452aa2.png)

So I changed accounts on my iPad and tested a different app and the `wait 0.1 seconds` block was working…? for example this one:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/e/def435824cb11ce951b918fbb719418d08a33b8d.png)

I am using FireBase for the app that doesn’t work and may be the problem but it does work on my phone so I cannot say for sure that is the problem.

---

<div class="post-metadata">

### Author: ![mythi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mythi/32/70585_2.png) [@mythi](https://community.thunkable.com/u/mythi)
#### Post date: [April 25, 2020, 10:09pm UTC](https://community.thunkable.com/t/solved-wait-block-waits-infinitely/563981/7 "2020-04-25T22:09:55Z")

</div>

Update! I believe I solved it but I am unsure why it works.

On most of my screens I have blocks to make sure the user is online (because I’m using AirTable and FireBase) that look like this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/2/d28cd8422b7a03d26cdf9487570e6f0612462e93.png)

I’m guessing the forever block slowed down the wait block on some devices because the problem is no longer happening.

Either way, thanks for you help, @tatiang and @domhnallohanlon

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [April 25, 2020, 10:20pm UTC](https://community.thunkable.com/t/solved-wait-block-waits-infinitely/563981/8 "2020-04-25T22:20:26Z")

</div>

could you put that on a loop? something like every 5 seconds check for internet?

put the check into a function that calls itself.

---

<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, 11:31am UTC](https://community.thunkable.com/t/solved-wait-block-waits-infinitely/563981/9 "2024-11-08T11:31:49Z")

</div>


