# A doubt regarding cloud variables

**URL:** <https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836>\
**Category:** Questions about Thunkable X\
**Created:** [December 28, 2020, 7:17am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836 "2020-12-28T07:17:05Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 28, 2020, 8:12am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/25 "2020-12-28T08:12:59Z")

</div>

Yes.

---

<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:** [December 28, 2020, 8:13am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/26 "2020-12-28T08:13:18Z")

</div>

Thanks!

---

<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:** [December 28, 2020, 8:17am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/27 "2020-12-28T08:17:07Z")

</div>

@tatiang I didn’t receive this on my console. This is my code:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/a/aa4f1f904b129df7d94cfd7fe4484e4ef0562095.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 28, 2020, 8:19am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/28 "2020-12-28T08:19:52Z")

</div>

An example is that my firebase console’s realtime database looks like this:

 ![Screen Shot 2020-12-28 at 12.13.59 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/0/30cda11bdace4344ae4e7b448e4be65dbd319ab7.png)

So to change the description from “Dog” to “Cat”, I would do this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/a/7afc101cf135cac3b6ba6ef0e2ccb9d60157e220.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 28, 2020, 8:20am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/29 "2020-12-28T08:20:48Z")

</div>

Have you been able to add **any** data to your firebase console from Thunkable?

---

<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:** [December 28, 2020, 8:21am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/30 "2020-12-28T08:21:51Z")

</div>

Including other projects?

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 8:21am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/31 "2020-12-28T08:21:59Z")

</div>

instead of cloud variable room you just right the variable as cloud variable room/Text\_input 7 get text and you cannot directly get that in your variable so use :

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/0/60ebf6a4fd2ac565e73fd1f33eec75ad11b6288f.png)  
this was an example and you will get that cloud variable block from variables tool bar

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 28, 2020, 8:23am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/33 "2020-12-28T08:23:37Z")

</div>

Can you post a screenshot of your realtime database, leaving out the top line (I think it’s called the bucket name)? The second line should be “room”.

@v.krishna Please edit your posts so that you can combine comments like that into a single post. Otherwise, these topics get very long very quickly.

---

<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:** [December 28, 2020, 8:27am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/34 "2020-12-28T08:27:13Z")

</div>

Silly me! My bad, I just missed it:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/f/7f1513f5cec7eca5766a1f17415b3e19fa4ad51f.png)

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 8:40am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/35 "2020-12-28T08:40:44Z")

</div>

Do you love harry potter? I am a potter head

---

<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:** [December 28, 2020, 9:20am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/36 "2020-12-28T09:20:27Z")

</div>

So am I

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 9:20am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/37 "2020-12-28T09:20:54Z")

</div>

think so…

---

<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:** [December 28, 2020, 9:21am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/38 "2020-12-28T09:21:33Z")

</div>

Did you look at the key and guess that?

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 9:21am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/39 "2020-12-28T09:21:49Z")

</div>

yep

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 28, 2020, 10:06am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/40 "2020-12-28T10:06:52Z")

</div>

Can I ask a basic question first? Have you supplied the Firebase API key and Database URL in your project settings?

One confusing issue in cloud variables is that if the Firebase keys are set then the variables will be stored in your database, if no keys are set the variables will be saved in the general Thunkable cloud. You will never get an error in this case.

The main difference here is that general cloud variables are not saved between app sessions.

If your database keys are set then your variable should work and should reflect a change in your database.

Another issue, you don’t need to initialise a cloud variable that you use to reference a key in your database unless you actually mean it. Just imagine you initialise a cloud variable that is actually a database key and reset the value saved in it. How will you read the info afterwards???

---

<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:** [December 28, 2020, 10:46am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/41 "2020-12-28T10:46:58Z")

</div>

> [@muneer](#):
>
> Have you supplied the Firebase API key and Database URL in your project settings?

I have @muneer

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 28, 2020, 11:35am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/42 "2020-12-28T11:35:33Z")

</div>

So have you established the fact that the connection is working and whatever key value you set in the app is being reflected in the database?

---

<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:** [December 28, 2020, 12:09pm UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/43 "2020-12-28T12:09:57Z")

</div>

Are you still experiencing issues here? What your doing should work fine. I can give you an example of this if you’d like.

---

<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:** [December 28, 2020, 12:34pm UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/44 "2020-12-28T12:34:48Z")

</div>

Yes, I received the value in my database. Check my post here:

> [@A doubt regarding cloud variables](http://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/34):
>
> Silly me! My bad, I just missed it: [image]

---

<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:** [December 28, 2020, 12:35pm UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/45 "2020-12-28T12:35:49Z")

</div>

Thanks! That would be great.

[Previous page](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836.md?page=1)

[Next page](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836.md?page=3)
