# Can't access firebase realtime DB on mobile but works with laptop

**URL:** <https://community.thunkable.com/t/cant-access-firebase-realtime-db-on-mobile-but-works-with-laptop/1635898>\
**Category:** Questions about Thunkable X\
**Tags:** firebase\
**Created:** [November 26, 2021, 5:12pm UTC](https://community.thunkable.com/t/cant-access-firebase-realtime-db-on-mobile-but-works-with-laptop/1635898 "2021-11-26T17:12:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincent.pappollakvt](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@vincent.pappollakvt](https://community.thunkable.com/u/vincent.pappollakvt)\
**Post date:** [November 26, 2021, 5:12pm UTC](https://community.thunkable.com/t/cant-access-firebase-realtime-db-on-mobile-but-works-with-laptop/1635898/1 "2021-11-26T17:12:17Z")

</div>

Hi community !  
For some reason, when I use my webapp on a mobile, I can’t access data from my Firebase realtime DB. However, it works when I use a laptop.  
Any idea what it could be?  
I have several leads but can’t find out. Can it be due to the nature of my internet provider? To the response time of my mobile, if my internet connection is not very good? Any other idea

Any idea or hint would be of great help. Thanks a lot!

Some precision in case it helps:  
The sign-in on firebase do work. But not the data retrieve.  
Same problem when using my friends’ mobiles (iphone)  
the issue appeared a few days/weeks ago

---

<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:** [November 26, 2021, 5:19pm UTC](https://community.thunkable.com/t/cant-access-firebase-realtime-db-on-mobile-but-works-with-laptop/1635898/2 "2021-11-26T17:19:16Z")

</div>

What happens when you run it as a webapp on a computer?

---

<div class="post-metadata">

**Author:** ![vincent.pappollakvt](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@vincent.pappollakvt](https://community.thunkable.com/u/vincent.pappollakvt)\
**Post date:** [November 26, 2021, 5:20pm UTC](https://community.thunkable.com/t/cant-access-firebase-realtime-db-on-mobile-but-works-with-laptop/1635898/3 "2021-11-26T17:20:55Z")

</div>

it works fine when runned on my laptop. I can access the data of the realtime db

---

<div class="post-metadata">

**Author:** ![vincent.pappollakvt](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@vincent.pappollakvt](https://community.thunkable.com/u/vincent.pappollakvt)\
**Post date:** [November 30, 2021, 9:33am UTC](https://community.thunkable.com/t/cant-access-firebase-realtime-db-on-mobile-but-works-with-laptop/1635898/4 "2021-11-30T09:33:55Z")

</div>

Hi,  
FYI, I found the cause of the issue.  
In my first screen, I have a first function block (that goes and retrieves a data from the realtime DB), followed by a navigation block (to go to another screen).  
For some reason, when I run it on a computer it works fine, but when I run it on mobile, it looks like the navigation block is runned before the function block is finished. And activate some kind of error mode that doesn’t allow to use the realtime DB anymore.

I introduced a “wait 0.1s” block between the two blocks, to make sure the sequence order is respected. Now it works.

(PS: Still don’t know why it worked on a computer and not on mobile.)

---

<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:** [November 30, 2021, 12:28pm UTC](https://community.thunkable.com/t/cant-access-firebase-realtime-db-on-mobile-but-works-with-laptop/1635898/5 "2021-11-30T12:28:32Z")

</div>

> [@vincent.pappollakvt](#):
>
> PS: Still don’t know why it worked on a computer and not on mobile.)

Hi @vincent.pappollakvt

I’ve ran into similar issues in the past. It may have something to do with the device connection speed vs execution time between blocks.

---

<div class="post-metadata">

**Author:** ![barnwalvivaang](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@barnwalvivaang](https://community.thunkable.com/u/barnwalvivaang)\
**Post date:** [February 1, 2022, 4:04am UTC](https://community.thunkable.com/t/cant-access-firebase-realtime-db-on-mobile-but-works-with-laptop/1635898/6 "2022-02-01T04:04:43Z")

</div>

Do the following things  
Turn on mobile data instead of Wi-fi  
Open firebase on your browser

and then live test it on the Thunkable Live App (not downloaded one)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [May 2, 2022, 4:04am UTC](https://community.thunkable.com/t/cant-access-firebase-realtime-db-on-mobile-but-works-with-laptop/1635898/7 "2022-05-02T04:04:44Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
