Retrieve count data from Firebase Java
I am trying to count the number of children in my DB table that meet a certain condition. If the isSeen column equals false then I want to count that, if it equals true I don't want to count it.…
I am trying to count the number of children in my DB table that meet a certain condition. If the isSeen column equals false then I want to count that, if it equals true I don't want to count it.…
I am trying to use the Firebase Auth and Firestore emulator for testing, but my real Firebase app for development. I have Hilt for dependency injection. In my test module, I set useEmulator but in my development module, I just…
im making a type of chat app. Im trying to write a firestore function that listens to a specific document that, when updated, will trigger the function to send a push notification to a specific user. However, im receiving an…
I have created a svelte app and building app using SvelteKit everything is works fine. I tried to deploy this app in firebase hosting but it fails. Sveltekit generating production build under .svelte-kit folder. I tried to change the public…
I'm attempting to perform a complex query with firestore v9. My intention is to get some docs (skip and limit) from a my data structure. What I mean is, I need to get for example 5 docs from a doc…
For a function that takes a callback function as an argument but also has a return value, can I get both the callback function argument and the function return value outside the function? Here is a concrete example. Suppose we…
I am streaming data to the browser like this: res.writeHead(200, { 'Content-Type': 'text/event-stream', 'Content-Disposition': 'attachment; filename="data.dat"', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive' }) stream1.pipe(res, {end: false)}; stream1.on('end', () => { console.log("stream 1 finished"); stream2.pipe(res, {end: false}); stream2.on('end', () => { console.log("last stream…
I'm using FlutterFire Cli to configure my firebase project it was working and i hadn't change any single line of code and i have an online version of the application on google play then the deployed version is stopped working…
import 'package:brew_crew/services/auth.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:brew_crew/services/database.dart'; class Home extends StatelessWidget { final AuthService _auth = AuthService(); @override Widget build(BuildContext context) { return StreamProvider<QuerySnapshot>.value( value: DatabaseService(uid: '').brews, initialData: (null), child: Scaffold( backgroundColor: Colors.brown[50], appBar: AppBar( title: Text('Brew…
I am trying to retrieve data from Firebase Realtime Database into a list in Flutter using a model.I don't get snapshot.data how to get data.value. I have read several other posts about using Firebase with Flutter but have not found…