- I suggest that once you have the firebase tag list you make a list.
- Create a procedure for each tag list.
Set the proyect bucket for each tag.
Call to get Firebase Get Value to barcode - When Firebase Got Value and you get the value, call to Get Value for the next tag.
In this way your app won’t freeze or stuck until all the firebase tags are obtained.
With 5 o 6 products maybe works OK, but what happens if you have 60 / 100 products ( with 4 tag for each products ) ???
You app freeze or stuck for many seconds !!!
These blocks not is solutions, but show how to call to Firebase to Get Value for each product tag ( the barcode value is not added to the list )