# \[solved\] Manage connection errors with Web\_viewer

**URL:** https://community.thunkable.com/t/solved-manage-connection-errors-with-web-viewer/329765
**Category:** Questions about Thunkable X
**Created:** [November 20, 2019, 5:48pm UTC](https://community.thunkable.com/t/solved-manage-connection-errors-with-web-viewer/329765 "2019-11-20T17:48:42Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![posta83wte2](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@posta83wte2](https://community.thunkable.com/u/posta83wte2)
#### Post date: [November 20, 2019, 5:48pm UTC](https://community.thunkable.com/t/solved-manage-connection-errors-with-web-viewer/329765/1 "2019-11-20T17:48:42Z")

</div>

Hi,  
How can I manage the connection error when I use the web\_viewer component?

If connection ok,  
show web viewer,  
else:  
show courtesy view

Thanks a lot,  
David

---

<div class="post-metadata">

### Author: ![danyklein](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@danyklein](https://community.thunkable.com/u/danyklein)
#### Post date: [November 20, 2019, 5:52pm UTC](https://community.thunkable.com/t/solved-manage-connection-errors-with-web-viewer/329765/2 "2019-11-20T17:52:50Z")

</div>

Can you maie a screenshot of your blocks please ?

---

<div class="post-metadata">

### Author: ![posta83wte2](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@posta83wte2](https://community.thunkable.com/u/posta83wte2)
#### Post date: [November 20, 2019, 6:12pm UTC](https://community.thunkable.com/t/solved-manage-connection-errors-with-web-viewer/329765/3 "2019-11-20T18:12:22Z")

</div>

Hi, can you help me build the blocks to manage the connection error?  
I attach screenshots of what I want to do  
Thank you for you help.  
D.

 ![jc-error](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/3/73d15ad445e99b4bdc523d8d3c037180b35b62e4.jpeg)

---

<div class="post-metadata">

### Author: ![danyklein](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@danyklein](https://community.thunkable.com/u/danyklein)
#### Post date: [November 20, 2019, 7:27pm UTC](https://community.thunkable.com/t/solved-manage-connection-errors-with-web-viewer/329765/4 "2019-11-20T19:27:54Z")

</div>

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

have a look here this should help you use if and else is device online do that else do that

---

<div class="post-metadata">

### Author: ![posta83wte2](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@posta83wte2](https://community.thunkable.com/u/posta83wte2)
#### Post date: [November 22, 2019, 10:31am UTC](https://community.thunkable.com/t/solved-manage-connection-errors-with-web-viewer/329765/5 "2019-11-22T10:31:19Z")

</div>

There is a problem,  
if I open the app and the connection is missing, I get redirected to the error view.  
If the app is already open and the connection goes away, the redirect to the error view does not work.  
Thans a lot ![08](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/2/92b74f3223e92df92d0ef539b89f2d42c061a446.png)

---

<div class="post-metadata">

### Author: ![danyklein](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@danyklein](https://community.thunkable.com/u/danyklein)
#### Post date: [November 22, 2019, 10:35am UTC](https://community.thunkable.com/t/solved-manage-connection-errors-with-web-viewer/329765/6 "2019-11-22T10:35:17Z")

</div>

so you have to work with a timer and check if device is online every 5 secondes or thing like that 🙂

---

<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:42am UTC](https://community.thunkable.com/t/solved-manage-connection-errors-with-web-viewer/329765/7 "2024-11-08T11:42:58Z")

</div>


