Just a quick message to ask you about how to store images URLs in Firebase Database for later use. Let me explain:
I use Firebase Storage to store Images but store their respective URLs in Firebase Database, separately from Firebase Storage (as I have been reading on here it was the way to do it).
So in Firebase Database I have a "ItemPictures" Node where I want to store up to 5 pictures URLs per Item.
But I don't know what is the best way to store multiple image URLs of a same Item:
- Creating a List with random ids using push() (and then having to manage deleting manually the picture'sURL when it gets updated).
- Creating a "Picture" Object with 5 URLs String values, making it easier to locate and navigate through.
The thing is that later on I will need those URLs to populate a View Pager with the 5 pictures.
Cheers,
Andy