skip to Main Content

Modular Firebase Admin Database

Is there or will there be modular Firebase Admin Database functions i.e. update(), get(), set(), ref() etc.? Maybe there is a workaround? Else I would have to code equal functions twice, like "craftBuilding()" on server (admin) and one for client.…

VIEW QUESTION

Flutter Bloc await for response before continueing

I have following code: class BidBloc extends Bloc<BidEvent, BidState> { final FirestoreRepository firestoreRepository; BidBloc({required this.firestoreRepository}) : super(BidsLoadingState()) { on<LoadAllBidsEvent>((event, emit) async { emit(BidsLoadingState()); Item item = event.item; Future getBids() async { List<Bid> bids = []; item.bids?.forEach((element) async { Bid? bid…

VIEW QUESTION

Get value from list of objects Firebase Android Studio

I have the following code: public void signOn(String id, String password){ usersReference.addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { boolean valid = false; for(DataSnapshot singleSnapshot : dataSnapshot.getChildren()){ String key = singleSnapshot.getKey(); if (key.equals(id)) { singleSnapshot.getValue()//THIS LINE THIS LINE Intent…

VIEW QUESTION
Back To Top
Search