# Slow internet crashes app with realtimeDB

**URL:** <https://community.thunkable.com/t/slow-internet-crashes-app-with-realtimedb/639320>\
**Category:** Questions about Thunkable X\
**Tags:** internet, realtimedb\
**Created:** [June 27, 2020, 12:37am UTC](https://community.thunkable.com/t/slow-internet-crashes-app-with-realtimedb/639320 "2020-06-27T00:37:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan\_hall\_apps](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@ryan\_hall\_apps](https://community.thunkable.com/u/ryan_hall_apps)\
**Post date:** [June 27, 2020, 12:37am UTC](https://community.thunkable.com/t/slow-internet-crashes-app-with-realtimedb/639320/1 "2020-06-27T00:37:14Z")

</div>

If I have a poor internet connection when trying to get data from realtimeDB it will time out and crash my app.

Is there a way around this, or something I am missing?

---

<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:** [June 29, 2020, 7:49pm UTC](https://community.thunkable.com/t/slow-internet-crashes-app-with-realtimedb/639320/2 "2020-06-29T19:49:20Z")

</div>

The realtimeDB only works with text, right @ryan_hall_apps?

Do you mean slow internet or _no_ internet?

You can use [this device block](https://docs.thunkable.com/device#get-online-offline-status) to check the online/offline status of your device. If there’s no internet connection you can prompt the user to connect and try again.

Hope that helps

---

<div class="post-metadata">

**Author:** ![ryan\_hall\_apps](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@ryan\_hall\_apps](https://community.thunkable.com/u/ryan_hall_apps)\
**Post date:** [June 29, 2020, 7:58pm UTC](https://community.thunkable.com/t/slow-internet-crashes-app-with-realtimedb/639320/3 "2020-06-29T19:58:54Z")

</div>

I mean slow internet.

I have been using the realtimeDB get block a lot, but I have not been nesting block in them. If I do this, sometimes with poor internet it will crash and freeze my app.

I have been rearranging all blocks after realtimeDB get procedure to be nested inside the realtimeDB get blocks. I’m hoping in doing this that the get procedure will finish completely then run the next block of codes.

---

<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:** [June 29, 2020, 8:03pm UTC](https://community.thunkable.com/t/slow-internet-crashes-app-with-realtimedb/639320/4 "2020-06-29T20:03:30Z")

</div>

Are you connecting to your own Firebase instance?

Can you increase the time-out?

---

<div class="post-metadata">

**Author:** ![ryan\_hall\_apps](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@ryan\_hall\_apps](https://community.thunkable.com/u/ryan_hall_apps)\
**Post date:** [June 29, 2020, 8:17pm UTC](https://community.thunkable.com/t/slow-internet-crashes-app-with-realtimedb/639320/5 "2020-06-29T20:17:32Z")

</div>

I am connecting to my own Firebase.

I have not been using a time-out function. I have put in wait functions after each get procedure in thunkable.

If nesting the blocks doesn’t work I will create a time out function.

---

<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:25am UTC](https://community.thunkable.com/t/slow-internet-crashes-app-with-realtimedb/639320/6 "2024-11-08T11:25:19Z")

</div>


