does anyone has a clue, how to use the firebase for iOS with only the “get key” option?
I have managed to use firebase crossplatform (developer team is totally awesome), but I am struggling with the data structure:
Let’s say I have a parent node (“shared contacts”) in firebase, which has childkeys with names(key) and numbers(value) (imagine a storage of contacts).
Without a taglist, the iOS app will never know, when a new contact was added by another user or deleted. First I thought of firebase functions to resolve this issue, but it does not like to handle taglists like arrays or lists:
So my first attempt, to write a taglist with firebase-functions each time data is added to a special key, called “taglist” under the parent node has failed .
Currently, I do not see an alternative to add a get-taglist-component by an expert developer @thunkable, @arun, @albert, or anyone out of the community comes up with a really smart idea .
Or has anyone experience in javascript DeltaSnapshot and the ForEach() method, which could maybe be used as a workaround?
Thank you for this smart idea, it will surely help many folks in the community
Unfortunely it does not solve my problems, because it only triggers, when changes are done and it gives too much information, when children have children and grandchildren.
What I need is like a simple “dir”-command in MS-DOS: just a simple overview of the keys of the children.
My best workaround for now is firebase functions with the Object.keys() command.
You see, I have very special demands when it comes to the firebase component. What else is needed badly (once a taglist is created) is a get-object component, which has a connectable property string -> to access all the child values for every item in the tag list.
Take your time for priorising, I know you have bunch of other creative stuff in the pipeline (perhaps also an enriched listview-component )
My app is like Google Maps for products (user-generated content). I need a tag list every time, a user wants to see which cities have insider tips already. Then every time a user wants to see, which categories are available in this city. And at last, when the user wants to see, which products are declared in a specific category.
/database_main/
—city1/
—city2/
—category1/
—product1: value
—product2: value
The only way, this can be done in thunkable iOS is to get the value of the most parent node and then slice the value (nested objects) with a complicated combination of text components in order to get the keys.
I will try to make functions in thunkable, which can analyze the JSON after generating the JSON from object…
that will look like that screenshot, just with while-loop and some more stuff
I am not understanding the logic that’s why i asked. Can you explain how you are using this function in your program? I mean what is the input, what is the output and how can i use the output
I am making an uber like app and in the driver app it will listen to serviceRequests childs and get the location of the user. The problem is how to get a userId that i don’t know yet and i think you had the same problem. Yes, I understand those words. Tell me if I wasn’t clear