# Cannot get data from Firebase in apk application

**URL:** https://community.thunkable.com/t/cannot-get-data-from-firebase-in-apk-application/330427
**Category:** Questions about Thunkable X
**Tags:** firebase, beginner
**Created:** [November 21, 2019, 4:11am UTC](https://community.thunkable.com/t/cannot-get-data-from-firebase-in-apk-application/330427 "2019-11-21T04:11:35Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![59030190w](https://avatars.discourse-cdn.com/v4/letter/5/4da419/32.png) [@59030190w](https://community.thunkable.com/u/59030190w)
#### Post date: [November 21, 2019, 4:11am UTC](https://community.thunkable.com/t/cannot-get-data-from-firebase-in-apk-application/330427/1 "2019-11-21T04:11:35Z")

</div>

cannot get data from Firebase in apk application  
in my application cannot getdata but thunkable emulator can getdata help me plz

 ![Annotation%202019-11-21%20105916](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/4/d4fd2d74d2d5814c86f90c09aa522a5c074b1210.png) ![Screenshot_20191121-105437_Smart%20Tilapia%20Farming](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/5/951d9dfcca74834571870d3a7b2ad3388ccb3c3f.jpeg) ![Screenshot_20191121-105446_Thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/e/ce4286ad2d47ca9299461963ad5ea6ec7fecb3d9.jpeg)

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [November 21, 2019, 6:17am UTC](https://community.thunkable.com/t/cannot-get-data-from-firebase-in-apk-application/330427/2 "2019-11-21T06:17:18Z")

</div>

I suggest you carefully study the documentation on the sides of Realtime DB and simplify your example, in which there are a lot of repeating blocks and completely incomprehensible use of the Timer component. What are you using this component for?

---

<div class="post-metadata">

### Author: ![59030190w](https://avatars.discourse-cdn.com/v4/letter/5/4da419/32.png) [@59030190w](https://community.thunkable.com/u/59030190w)
#### Post date: [November 21, 2019, 6:39am UTC](https://community.thunkable.com/t/cannot-get-data-from-firebase-in-apk-application/330427/3 "2019-11-21T06:39:21Z")

</div>

i need update data every minute and i have 3 key database

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [November 21, 2019, 7:00am UTC](https://community.thunkable.com/t/cannot-get-data-from-firebase-in-apk-application/330427/4 "2019-11-21T07:00:13Z")

</div>

Why update data every minute if there are blocks in Spreadsheet and cloud-vars for listening to data changes in nodes?

---

<div class="post-metadata">

### Author: ![59030190w](https://avatars.discourse-cdn.com/v4/letter/5/4da419/32.png) [@59030190w](https://community.thunkable.com/u/59030190w)
#### Post date: [November 21, 2019, 7:08am UTC](https://community.thunkable.com/t/cannot-get-data-from-firebase-in-apk-application/330427/5 "2019-11-21T07:08:31Z")

</div>

my sensor arduino sent data to firebase and i need to get data from firebase show in label but i have problem

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [November 21, 2019, 7:18am UTC](https://community.thunkable.com/t/cannot-get-data-from-firebase-in-apk-application/330427/6 "2019-11-21T07:18:49Z")

</div>

# For `cloud` variables, updating when the cloud database changes

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-LOcNMBjSSiKFc-jFi6j%2F-LOcOnHrfkvG5sEhnhTN%2FScreen%20Shot%202018-10-12%20at%206.10.44%20AM.png?alt=media&token=365e6100-4e9d-4f7c-9045-5e123fd84f52)

Cloud variables are unique because they can be linked to values in a cloud database which can be shared across devices. Once you have created your cloud variable, you can set it to update **when the variable updates in the cloud. This block replaces the Add.Listener and DataChanged blocks in the Realtime DB.** You can see how this works in the [Gram](https://x.thunkable.com/projectPage/5bbff7e035aa10fd7702f479) app, which updates the pictures, captions and hearts when anyone else with the app uploads a new photo.

---

<div class="post-metadata">

### Author: ![59030190w](https://avatars.discourse-cdn.com/v4/letter/5/4da419/32.png) [@59030190w](https://community.thunkable.com/u/59030190w)
#### Post date: [November 21, 2019, 7:25am UTC](https://community.thunkable.com/t/cannot-get-data-from-firebase-in-apk-application/330427/7 "2019-11-21T07:25:21Z")

</div>

Thank you very much. I’ll try it.

---

<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/cannot-get-data-from-firebase-in-apk-application/330427/8 "2024-11-08T11:42:59Z")

</div>


