It only gives me one user, even though my Firebase has more than one.
I can see both user IDs in the Firebase structure, so I’m sure the data is there.
What I think,
Maybe the value I get from Firebase is still text, not a dictionary.
I tried decoding twice (first for value, second for userText), but it still only returns one user.
Can someone please explain exactly where I might be going wrong, or how to properly loop through all the users in "All User's" and build my list of lists?
The problem is in how your data is saved on Firebase.
If you see, there are many \, meaning you have an All Users dictionary that contains two uid keys, but they don’t contain a properly formatted dictionary.
To fix this, as soon as you receive the data, you need to loop through the dictionary and format each key to turn it into an actual dictionary.
The operation dictionary recursive set cannot accept the arguments: , [mct4IoonlgQAKmZwmxcE7NAiTyK2], [{}], [{“Country":“GB”,“Email”:"test@gmail.com”,“PushId”:“8f1a285e-373c-4302-bbeb-e2a3d11f97d4”,“UseName”:“Victor”,“User Profile”:“http://res.cloudinary.com/dssynxqr3/image/upload/v1760885063/bo3wtpzaywqoso5fkc5p.webp”,“UserID”:“mct4IoonlgQAKmZwmxcE7NAiTyK2”}]
I don’t understand anything from that page, isn’t there anyway of storing and getting these data using Firebase component, @Still-learning@RaYzZz@Ibrahim_Jamar help me
The operation dictionary recursive set cannot accept the arguments: , [J1R1N2nerAbKnpcO3OPjo0iKaKD3], [{}], [{“Country":“GB”,“Email”:"email2@gmail.com”,“PushId”:“9aeae157…”,“UseName”:“Maybe”,“User Profile”:“http://…jpg”,“UserID”:“J1R1N2…”}]
but unfortunately, this way you’ll make a lot of unnecessary requests to the database.
If you have 50 tags, 50 requests will be executed.
Multiply this by the number of clients, and the number of requests will skyrocket.
Unfortunately, the Firebase component isn’t very good at saving data that isn’t simple text.
You could try using some extensions, otherwise, check out Tim’s guide (Please don’t say it’s unclear, it’s perfect )