# How to use Firebase in iOS without Get-Taglist-Component?

**URL:** <https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, ios, components\
**Created:** [March 20, 2018, 4:18pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992 "2018-03-20T16:18:57Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![emilio1](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@emilio1](https://community.thunkable.com/u/emilio1)\
**Post date:** [October 4, 2018, 4:45pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/22 "2018-10-04T16:45:01Z")

</div>

Yes

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 4, 2018, 4:48pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/23 "2018-10-04T16:48:11Z")

</div>

congratulations 🙂

You should now rebuild the function, I posted in the screenshot above.

Then use realtime\_db.get  
key: serviceRequests

you will get a value which is the input for the function in my screenshot (Variable: “inputobject”)

unfortunely you will nee 10-20 minutes to build this 🙂

---

<div class="post-metadata">

**Author:** ![emilio1](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@emilio1](https://community.thunkable.com/u/emilio1)\
**Post date:** [October 4, 2018, 4:53pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/24 "2018-10-04T16:53:57Z")

</div>

Yeah, i just wanted the logic because i understood that you found out the solution. After i do that i will inform you if everything worked as it should. I owe you a beer. Thanks.

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 4, 2018, 4:57pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/25 "2018-10-04T16:57:57Z")

</div>

youre welcome

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [October 4, 2018, 5:28pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/26 "2018-10-04T17:28:21Z")

</div>

@User81, I would strongly suggest recreating your example blocks to use object property getters rather than converting to a JSON string and parsing that string. The object (in your example ‘inputobject’) is already parsed! My guess is that your example blocks would be much much simpler 😉

-Mark

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 4, 2018, 5:32pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/27 "2018-10-04T17:32:45Z")

</div>

@Mark thank you for your advice.

I think I tried it with object blocks but struggled. I had to put a “property name” in but in a unknown list of nodes it is not possible to **put a variable in the property field** , yet.

![Screenshot%20from%202018-10-04%2019-33-40](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/d/1d967a2a237636b400d048b91abcc81c250eed5a.png)

---

<div class="post-metadata">

**Author:** ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)\
**Post date:** [October 4, 2018, 5:49pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/28 "2018-10-04T17:49:10Z")

</div>

…this would help:

 ![Screenshot%20from%202018-10-04%2019-44-34](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/2/026ae85c7f79e0b39f6b15a1fc0022743cc417d3.png)

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [October 4, 2018, 5:52pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/29 "2018-10-04T17:52:27Z")

</div>

> [@User81](#):
>
> I think I tried it with object blocks but struggled. I had to put a “property name” in but in a unknown list of nodes it is not possible to **put a variable in the property field** , yet.

I see. In most situations you know the properties of the JSON/Object that you are dealing with but it sounds like perhaps that is not the case for your example. We definitely need to add the ability to specify a dynamic property name in the property getter and setter blocks, as well as a way to get all the property names from an object. I’ve added that to our internal bug queue.

-Mark

---

<div class="post-metadata">

**Author:** ![emilio1](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@emilio1](https://community.thunkable.com/u/emilio1)\
**Post date:** [November 14, 2018, 10:52am UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/30 "2018-11-14T10:52:34Z")

</div>

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

Hi,

When i press the testbutton nothing happens to PROVE. When i put Realtime\_db.get value to PROVE it shows the text [object Object].

What can be the issue?

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [November 14, 2018, 11:43pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/31 "2018-11-14T23:43:49Z")

</div>

@emilio1 I would strongly urge you to use cloud variables rather than the Realtime DB if possible. It makes the blocks much simpler and easier to understand. I’ve made a fairly simple example app [here](https://x.thunkable.com/copy/528b26c65506f4e393fc479913a8ae45) which shows how you can use cloud variables with dynamic names (think of the names as the tags that you are using above), which I think you need for your example.

Also, are you really sure that you need to explicitly parse the JSON as you are doing in in your ‘taglist’ function? Things would be much simpler if you could just store and retrieve objects and use the ‘property’ blocks with them.

-Mark

---

<div class="post-metadata">

**Author:** ![emilio1](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@emilio1](https://community.thunkable.com/u/emilio1)\
**Post date:** [November 15, 2018, 8:27am UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/32 "2018-11-15T08:27:58Z")

</div>

Hi Mark,

I was troubleshooting that’s why i gave direct values to realtime\_DB but in a real world scenario the children’s are user generated. That’s why i thought i can use the taglist function but by troubleshooting it looks that something isn’t right. Basically i want that each time button is clicked to return me a list with all children’s of that parent.

Thank you

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [November 15, 2018, 5:36pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/33 "2018-11-15T17:36:58Z")

</div>

> [@emilio1](#):
>
> … in a real world scenario the children’s are user generated.

@emilio1, if you look at the project that I linked to in my previous reply, you’ll see that I’m using cloud variables with user generated content (i.e., from a Text Input component).

-Mark

---

<div class="post-metadata">

**Author:** ![emilio1](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@emilio1](https://community.thunkable.com/u/emilio1)\
**Post date:** [November 17, 2018, 8:42am UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/34 "2018-11-17T08:42:57Z")

</div>

@Mark but they can add in number too that’s why i need to get all the childrens of a parent as a list when i click a button. The content is user generated that means that the parent can have 4 childrens now and after 30 min 20 childrens. The idea of the taglist function works as a logic but i dont know why i cant make it work in my project.  
@User81

---

<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 19, 2018, 3:30pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/36 "2018-11-19T15:30:40Z")

</div>

Hi,

Did you manage to solve your problem? If not, then I can think about it, if you give a textual structure of the data and what you need to get from it and in what form.

---

<div class="post-metadata">

**Author:** ![emilio1](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@emilio1](https://community.thunkable.com/u/emilio1)\
**Post date:** [November 20, 2018, 12:05pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/37 "2018-11-20T12:05:44Z")

</div>

Hi @actech,

The taglist function is supposed to do the work but for some reason isn’t working.

The steps are like this:  
Press button  
get parent from realtime\_db  
get childrens from that parent and put them in a list  
access the variable of the children with realtime\_db.get() and location parent/Child\_from\_list  
do something with that variable

Note that childrens can add and remove in number. One time they will be for example 4 childrens and next time 10. We need to get what parent have inside each time that we press the button. And then put the childrens in a list.

I hope i was clear

Thank you

---

<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 20, 2018, 2:03pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/38 "2018-11-20T14:03:00Z")

</div>

Clear. Can you give me a link to your project? Without this, it is very difficult to understand the problem. Or I need a file with JSON data so that I can download it from my database and work with the data.

From FireBase, you can export data to a JSON file. I need this data for work.

---

<div class="post-metadata">

**Author:** ![emilio1](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@emilio1](https://community.thunkable.com/u/emilio1)\
**Post date:** [November 27, 2018, 4:05pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/39 "2018-11-27T16:05:10Z")

</div>

Hi @actech,

> {  
> “updatedList” : {  
> “asduhwibe8ifbiw3ibfss” : “I just came here update me to the list”,  
> “ihadiubew9r7g3rdf8egffa” : “Also information”,  
> “ohe92uh2dnqn9hu2q8fgre9d” : “Other user information”,  
> “ondaihudiwnd9he329h23rir” : “information”  
> }  
> }

This will be the json file. Did you understood clearly what i want to archive?

---

<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 27, 2018, 7:12pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/40 "2018-11-27T19:12:09Z")

</div>

In the example below, child elements are added to the list and the child’s value is displayed when a list item is selected. What else needs to be done?

[https://x.thunkable.com/projects/5bfd8f360834366be5f21dbc/project/properties/designer/](https://x.thunkable.com/projects/5bfd8f360834366be5f21dbc/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![emilio1](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@emilio1](https://community.thunkable.com/u/emilio1)\
**Post date:** [November 27, 2018, 7:41pm UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/41 "2018-11-27T19:41:23Z")

</div>

Thank you! This was enough 😄

P.S. Nice website. I’m reading your last article with google translate

---

<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 28, 2018, 8:37am UTC](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992/42 "2018-11-28T08:37:04Z")

</div>

Thank you for your feedback about my site. Hope google translator translates the information clearly. 🕶

[Previous page](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992.md?page=1)

[Next page](https://community.thunkable.com/t/how-to-use-firebase-in-ios-without-get-taglist-component/19992.md?page=3)
