# Make 'try again' in no connection

**URL:** <https://community.thunkable.com/t/make-try-again-in-no-connection/1090313>\
**Category:** Questions about Thunkable X\
**Created:** [February 10, 2021, 9:26am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313 "2021-02-10T09:26:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![irwin2004](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@irwin2004](https://community.thunkable.com/u/irwin2004)\
**Post date:** [February 10, 2021, 9:26am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/1 "2021-02-10T09:26:16Z")

</div>

How to make ‘try again’ in no connection condition? When ‘try again’ button pressed, it will retry searching for connections

 ![Screenshot_20210210-172704](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/e/eec84d26e65e0ad9cfa3d6236f2e0747796d88f4.jpeg)  
So it will look like this.

---

<div class="post-metadata">

**Author:** ![aarav-work](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aarav-work/32/95738_2.png) [@aarav-work](https://community.thunkable.com/u/aarav-work)\
**Post date:** [February 10, 2021, 9:51am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/2 "2021-02-10T09:51:40Z")

</div>

There must be setting in your phone or there is a forever loop (forever loop is a error creator)

---

<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:** [February 11, 2021, 4:33pm UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/3 "2021-02-11T16:33:21Z")

</div>

Don’t create loops for such reasons as by using them you will most probably end up blocking the rest of your app’s logic. Set a timer that fires every x seconds which will trigger an IF statement using the “device is online?” block.

---

<div class="post-metadata">

**Author:** ![irwin2004](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@irwin2004](https://community.thunkable.com/u/irwin2004)\
**Post date:** [February 12, 2021, 3:18am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/4 "2021-02-12T03:18:20Z")

</div>

Could you screen shot your blocks?

---

<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:** [February 12, 2021, 3:55am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/5 "2021-02-12T03:55:17Z")

</div>

I would encourage you to first try following the logic I proposed, instead of just me serving you the solution. You can then share your blocks and we will help you fix any issues with it:

> [@Deluxe](#):
>
> Set a timer that fires every x seconds which will trigger an IF statement using the “device is online?” block.

So, for example, you need to know if your device becomes offline while using your app. You can detect this using the “device is online?” block. Since Thunkable won’t check by itself if the device is online or offline, you need to insruct your app to periodically check if it is or if it is not. The best way to do this is with the use of a timer. Check the Thunkable documentation for details about setting one up. Then every time the timer fires, follow this logic: “if the device is online then do nothing else navigate to the screen with the ‘No network connection’ message”. That is all you need to do in relation to the automatic check.

Start with this and send your blocks for us to review.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [February 12, 2021, 4:39am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/6 "2021-02-12T04:39:05Z")

</div>

Hi @Deluxe that was a really helpful reply and just what I was looking for. Once the user is taken to the NO NETWORK screen, how can we close the app when the user presses the TRY AGAIN LATER button or some other component with a similar message? As far as I know, there’s no way you can close the app with Thunkable- the user has to do it manually.

Thanks.

---

<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:** [February 12, 2021, 4:58am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/7 "2021-02-12T04:58:16Z")

</div>

> [@codeswept](#):
>
> how can we close the app when the user presses the TRY AGAIN LATER

I don’t think @irwin2004’s intention is to close the the app when pressing the try again button. I think that his intention is to check if the device is back online and this can easily be done with an “if” statement. I also think that he has the button there, not knowing that the timer can keep firing every x seconds and automatically navigate between the app’s “main” screen and the “Connection error” screen. There are so many ways to approach this.

Now, I understand you may be asking as you may be looking for ways to close the app. As far as I know, this is not doable but I would then challenge how useful that is when the user can just close the app using a gesture or button like he does with any other app. To be honest, I can’t think of may apps I use which have a “Close app button”, perhaps they do have a “Log out” button but still, they will take you back to the app’s logon screen, not kick you out of the app. I am not saying there aren’t apps which do that but as we are using Thunkable to build our apps, we need to consider the platform’s limitations while designing them.

This is a separate topic actually so feel free to continue it on Discord.

K

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [February 12, 2021, 5:37am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/8 "2021-02-12T05:37:03Z")

</div>

Thanks very much for your reply!

---

<div class="post-metadata">

**Author:** ![irwin2004](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@irwin2004](https://community.thunkable.com/u/irwin2004)\
**Post date:** [February 16, 2021, 3:31am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/9 "2021-02-16T03:31:27Z")

</div>

Here is my blocks:  
This is for the screen  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/2/a2e6693da71b6779c1d18a7ea9fef1cc4b8b80dd.png)

This is for the “try again” button  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/2/925e41a9683f7230efa5c9f35f6e03a946b5ce1d.png)

When I open my app with no internet connection, then I turn on my internet connection, then I click “try again” button. Why it show loading icon? It supposed to show my screen.

This is how it looks:

 ![Screenshot_20210216-112852_1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/b/2b91d65099009dfe19a44f55c29118c7d75b14dd.jpeg)

Notes:  
Column is offline display  
Data viewer list is online display

---

<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:** [February 16, 2021, 3:43am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/10 "2021-02-16T03:43:43Z")

</div>

Could it be that your Data List Viewer is placed inside the column? Also, can you add another element i.e. an image and hide it as well together with the Data List Viewer to test? It may be that thrmere is an issue with the Data List Viewer.

---

<div class="post-metadata">

**Author:** ![irwin2004](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@irwin2004](https://community.thunkable.com/u/irwin2004)\
**Post date:** [February 16, 2021, 3:57am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/11 "2021-02-16T03:57:17Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/8/48a24ee3cd5e742104eedb3ec722f76e7a498daa.png)  
“No internet connection” is in column73. I make the data viewer list into visible=false and column 73 visible=true.

---

<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:** [February 16, 2021, 4:00am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/12 "2021-02-16T04:00:47Z")

</div>

Can you add another element i.e. an image and hide it as well together with the Data List Viewer to test? It may be that there is an issue with the Data List Viewer.

---

<div class="post-metadata">

**Author:** ![irwin2004](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@irwin2004](https://community.thunkable.com/u/irwin2004)\
**Post date:** [February 16, 2021, 4:13am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/13 "2021-02-16T04:13:10Z")

</div>

When I open my app with no internet connection, then I turn on my internet connection, then I click “try again” button. The image is visible but the data viewer still shows loading icon. Is my blocks wrong, so my data viewer only shows loading icon?

---

<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:** [February 16, 2021, 4:15am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/14 "2021-02-16T04:15:19Z")

</div>

Ok so it seems there is a very specific issue with the Data List Viewer whis is not that surprising as it is a relatively new component. Is there any way you can share your project so I can take a look? Thanks.

---

<div class="post-metadata">

**Author:** ![irwin2004](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@irwin2004](https://community.thunkable.com/u/irwin2004)\
**Post date:** [February 16, 2021, 4:24am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/15 "2021-02-16T04:24:27Z")

</div>

Here is the link:  
[https://x.thunkable.com/copy/4c3692d67a938023aa46b569288113a4](https://x.thunkable.com/copy/4c3692d67a938023aa46b569288113a4)

---

<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:** [February 16, 2021, 4:32am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/16 "2021-02-16T04:32:19Z")

</div>

It works fine on my Android and iPhone. Have you installed the latest version of the Tunkable Live (Companion) app?

---

<div class="post-metadata">

**Author:** ![irwin2004](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@irwin2004](https://community.thunkable.com/u/irwin2004)\
**Post date:** [February 16, 2021, 4:37am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/17 "2021-02-16T04:37:34Z")

</div>

My Thunkable Live version is 258. Have you download it and try the same thing? I download it and its not working.

---

<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:** [February 16, 2021, 4:40am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/18 "2021-02-16T04:40:39Z")

</div>

Can you try this version? It will check if the device is online every 5 seconds so you don’t even need to press the button. Start with your device online and see if the Data List Viewer is visible. Then switch your Internet connection off and you should get the “No internet connection” message. Then re-enable your Internet connection and let me know if you are still getting the same issue with the Data List Viewer:

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

---

<div class="post-metadata">

**Author:** ![irwin2004](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@irwin2004](https://community.thunkable.com/u/irwin2004)\
**Post date:** [February 16, 2021, 5:10am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/19 "2021-02-16T05:10:32Z")

</div>

It’s working when I download it. Thank you @Deluxe

---

<div class="post-metadata">

**Author:** ![irwin2004](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@irwin2004](https://community.thunkable.com/u/irwin2004)\
**Post date:** [February 17, 2021, 3:11am UTC](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313/20 "2021-02-17T03:11:06Z")

</div>

What if I want to start with device is offline?

[Next page](https://community.thunkable.com/t/make-try-again-in-no-connection/1090313.md?page=2)
