Questions tagged [firebase]
Firebase is a serverless platform for unified development of applications for mobile devices and for the web.
130,521
questions
0
votes
0
answers
12
views
Join two firestore collections in FLutter
I have two collections in firestore. One of them is "users" and the otherone is "teams". Right now they are uid related with the lists "teamMembersUid" and "...
0
votes
0
answers
16
views
Login with facebook works on real phones but not emulators, it started happening with the new emulator update
This code works on real phones but not on emulators
I use flutter_facebook_auth. This exact code worked fine before emulator update and it's still works on real devices, but on emulator it just do ...
1
vote
1
answer
15
views
Firebase Realtime DB query returns both a list and a map when using startAfter
I have the following piece of code, that is simplified for the purpose of illustration:
List<Name> _nameList = [];
_getNameList() {
String dbPath = “names/“;
var startAfter = ...
0
votes
0
answers
12
views
'grpcpp/grpcpp.h' file not found in Xcode using Firebase SDK
I never had this issue but I opened Xcode and all of a sudden the SwiftUI app was not compiling throwing the error: 'grpcpp/grpcpp.h' file not found. I am using the package SDK from github (most ...
0
votes
2
answers
24
views
Read Documents and fields from firebase flutter
I have cloud Firestore with one Collection , this collection has many documents and documents have many fields
I use stream to get data from the collection and it was work fine but I add some ...
0
votes
1
answer
14
views
Does Firebase security rules Map method get() count as a document read?
I've been writing security rules for my app and I've come across a spot of confusion. In the docs it says that using a get() call in security rules count as a read and you are limited to 10 per ...
0
votes
0
answers
9
views
Flutter Firebase Phone Authentication in release mode is not working in my phone but it does work fine when trying in some other phone
Upon building a release apk, I have added debug and release sha1 and 256 keys in the console and even changed the updated json, enabled phone auth too. But when I try to send otp for phone auth in my ...
0
votes
0
answers
12
views
Unexpected token exception being thrown by firebase-admin library
I am using the firebase-admin library in my node application.
My index.js is empty, with the exception of the require statement for firebase-admin...
var admin = require('firebase-admin');
The ...
0
votes
0
answers
20
views
Can't fetch data from Firestore with React search bar
I need to make a simple search bar to fetch some data from the Cloud Firestore database. Can you help me? I'm new to React and it still costs me a lot. I use version 9 modular of firebase
This is my ...
0
votes
1
answer
13
views
Flutter: Bad state: field does not exist within the DocumentSnapshotPlatform | cloudfirestore
I am trying to fetch data from the cloud filestore to a Text widget. I did fetch Querysnapshot document data from cloud firestore and show that data in the text widget. but it shows the mentioned ...
0
votes
1
answer
9
views
While placing order in react.js with stripe getting error
const payload = await stripe.confirmCardPayment(clientSecret, {
payment_method: {
card: elements.getElement(CardElement)
}
}).then(({paymentIntent}) => {
// ...
1
vote
0
answers
19
views
get the position of an array from within firebase value event listener
I have these to arrays
ArrayList<String> btntitle = new ArrayList<>();
ArrayList<String> imageUrl = new ArrayList<>();
i get the key of the snapshot and add it to my btntitle ...
0
votes
1
answer
21
views
Is it possible to create timeouts for Firebase?
I'm developing an Android application using Firebase Authentication, Firebase Realtime Database, and Firebase Storage.
Is it possible to set timeouts whether it would be programmatically or directly ...
0
votes
1
answer
14
views
convert firestore data to string to display, in inner html
I Want to display my data in this <p> element but I don't know how. I can get it and then console log it but that's it right now, I got it to display document id but when I go further than that ...
0
votes
1
answer
16
views
How paging work with realtime firestore query?
I am confused how to make pagination with realtime firestore query:
const subscriber = firestore()
.collection('notifications')
.doc(authenticatedUser.uid)
.collection('...
1
vote
0
answers
14
views
Firebase sendSignInLinkToEmail with Custom SMTP does not work
When using passwordless signin across any SDK (I'm using JS-web version 8 and iOS/Android with react-native-firebase) the link that is generated does not use the link url in the action settings if you'...
0
votes
0
answers
14
views
Unable to rebuild flutter app after setting up Firebase
When attempting "flutter run" from step 3.5 of the official "Add Firebase to your app" tutorial with the standard flutter starter app (So as to limit other potential issues) (See ...
2
votes
0
answers
14
views
FirebaseAuth.getInstance().getCurrentUser().getUid() always pointing to same ID
I'm trying to make a feature in my Android studio app which allows users to book appointment with a fixed list of doctors through Firebase realtime database. The problem is that FirebaseAuth....
-1
votes
0
answers
12
views
hi, I am trying to build an ecommerce app based on firebase. I cannot create a summary of the order with user data [closed]
I am trying to build an ecommerce app based on firebase. The problem is that at the payment stage I cannot create a summary of the order with user data, knowing that If I create a summary of the order ...
0
votes
0
answers
24
views
How to initialize fireorm (firebase firestore) in nextjs depending on whether you are client or server side?
I have this service called UserServicewhich looks like this:
export async function getUserById(id: string) {
if (typeof window === undefined) {
const { firestoreAdmin } = await import('@/lib/...
0
votes
1
answer
11
views
StreamBuilder not returning CircularProgressIndicator when waiting for Firebase connection
I have a StreamBuilder that isn't displaying a CircularProgressIndicator when waiting for the results from the Firebase connection. I just end up receiving a generic Null check operator used on a null ...
0
votes
0
answers
6
views
I am trying to upload multiple base64 url images from nodejs to firebase storage, get their downloadable urls and save them in mongodb
I am trying to upload multiple base64 url images from nodejs to firebase storage, get their downloadable urls and save them in mongodb. Below is the code I wrote to process the base64 urls.
...
0
votes
0
answers
13
views
Kotlin Firestore get data after search
I can search firestore with mutable list of keywords via kotlin. But before of the search i can see all user details in recyclerview. But at the end when i search sucessfully a username then user ...
0
votes
1
answer
14
views
How do i update my firebase v8 code to v9 in React-native?
So i want to set my documents on firebase in a way such that a submitted email becomes the document ID
With v8 of Firebase i can do
db.collectiion('dbName')
.doc({authorizedUserEmail})
.set({
'...
0
votes
1
answer
28
views
Firestore get all documents (contain subcollections) from a root collection
I am working on an android app with java and i use firestore database i have a collections called user location who is structured like in photo :
db->RootCollection->document->subCollection-&...
0
votes
1
answer
17
views
AdMob , ad item in Recycler View hides some items and creates spaces after the ad
today I was trying to implement custom ads inside a horizontally oriented recycler view.
Everything went fine, till I ran the app and noticed that some of the items inside my MutableList are not ...
0
votes
3
answers
26
views
How to update all collection in firebase firestore in flutter
I have two collections. One collection "User", who contains the user info (name...) And one collection "Post" who contains all posts of my flutter application. A post document ...
0
votes
0
answers
14
views
React Native Google Mobile Ads not working. After installing npm add react-native-google-mobile-ads I got some errors please check the below error
After installing the npm add react-native-google-mobile-ads I got the error. I posted here the errors please check, Here I added my android build.gradle file and App level build.gradle file
*how can I ...
0
votes
1
answer
19
views
Firebase: performance VS plan quota/limitations
I have this collections tree:
users/portfolios/rents/events
So in order to find specific events for all users I can:
Collection Group Query
Move events to a separate collection with userID, ...
0
votes
1
answer
16
views
cannot get fields from SnapShot in firebase
I'm trying to get the real-time document fields (text and timeStamp) to be displayed from the "first" collection in firestore collection, with the use of onSnapshot. I can verify that the ...
0
votes
0
answers
10
views
keep getting the error FirebaseError: Expected type 'Ia', but it was: a custom Aa object
I want to run snapshots but it will keep popping the error index.esm2017.js:14648 Uncaught (in promise) FirebaseError: Expected type 'Ia', but it was: a custom Aa object
I want to run a firebase ...
0
votes
0
answers
11
views
google-services.json Google Cloud outh login and Firebase dynamic link same project android
I have an Android project where I am using Google Cloud authentication service, where I downloaded the google-services.json file and everything is working.
Now that using Firebase's Dynamic Link ...
0
votes
0
answers
24
views
Flutter: How to make the image change in relation to the position?
I made a carousel that retrieves the link of the images on Firebase Firestore. The recuperation of the images works but when the position changes the image does not change it displays only the first ...
-1
votes
0
answers
12
views
How to set dns over flutter firebase project
I am using firebase in my flutter project,
when I call firebase methods I get a 403 error,
I want to set a DNS over my flutter project to don't get this error again,
please help me.
1
vote
0
answers
43
views
How to store longitude and latitude to firebase
So here is the code for my google maps widget
body: Column(
children: <Widget>[
SizedBox(
height: MediaQuery.of(context).size.height / 1.75,
child: ...
0
votes
0
answers
56
views
documentRef.get() not executed
My app should retrieve for the user the single String field "itemList" of their FireStore db document (named after their userID) to a String variable "json"
structure of FireStore ...
0
votes
1
answer
37
views
How to signal to the database that I have lost the connection - Java
How can i make that if player1 loses connection, firebase will get signal, i just need to know how to make firebase get notification that player1 lost connection for example
I use this to check if ...
0
votes
1
answer
15
views
PubSub cron job every 5 minutes between 7am and 12:30am
Do I need to write two cronjobs for this? How do I go about doing it using pubsub schedule? Currently I have:
const cron = PUB_SUB().schedule('*/5 * * * *');
This completes every 5 minutes, but I ...
0
votes
1
answer
22
views
TypeError: Cannot read properties of undefined (reading 'authService')
I'm trying to detect if a user is already saved in localstorage before reading it from the database:
async getQuestion(id: string): Promise<Question> {
let res: Question
await ...
0
votes
1
answer
19
views
Using variable from onComplete() method while working with Firestore database
So I have a collection in Cloud Firestore and I need to store the informations from database in a list (coordPlaces). I did it like this, created these methods:
private void readData(FirestoreCallback ...
0
votes
2
answers
37
views
How to check if user is authenticated with Google or with Email and password? [duplicate]
I'd like to implement a "Reset password" button in the settings of my app but I think I should enable it only for users authenticated with Email and password, and not for users logged with ...
0
votes
1
answer
27
views
How to query data with isEqualTo and isNotEqualTo in firebase firestore
The below query stop working when I add .where('user_id', isNotEqualTo: currentUser!.id) How can i fetch data with isEqualTo and isNotEqualTo in firebase firestore?
Future<int> unreadMessages(...
0
votes
0
answers
26
views
firebase functions deploy error : ERR_PACKAGE_PATH_NOT_EXPORTED
I was following the in-app-purchase part in Google Codelab, But after I finish all steps and finally run firebase deploy this error has appeared.
I have read many solutions about the simillar problems,...
0
votes
1
answer
35
views
React Native firebase admob not installing, How can I install without crashing the app
Here below is the error I am getting
I used this command npm i @react-native-firebase/admob
my project name- AwesomeProjec559911
C:\Users\Admin\Desktop\ReactNative\Firebase\AwesomeProjec559911>npm ...
0
votes
1
answer
15
views
eslintrc.js:4 "parserOptions": { ^ SyntaxError: Unexpected token ':' functions predeploy error: Command terminated with non-zero exit code 2
/* eslint disable */
{
"parserOptions": {
"parser": "@babel/eslint-parser",
"requireConfigFile": false, // <== ADD THIS
"ecmaVersion": 2018, // ...
-1
votes
0
answers
32
views
react states get undefined
im trying to understand why all what im fetching become undefined when im doing this function
this functions role is to add an object to an array
the function utility is to save a filter for using it ...
0
votes
0
answers
20
views
Import firebase/firestore not working in Next.js
When I import { collection, getDocs } from "firebase/firestore"; I get this error:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for ...
0
votes
0
answers
12
views
whats the benefits of using AWS SNS with firebase cloud messaging(fcm) to send push notifications
I'm trying to integrate fcm for push notifications and we're also using some aws services for development. I want to understand what’s the use of aws sns with fcm as i did some research and found out ...
1
vote
1
answer
35
views
There is a problem that is rebuild when I click TextField() in Flutter
My code includes FutureBuilder(), which get data from Firestore, and its child widgets include GridView.builder and TextField widgets etc.
When I click on a TexField(focus), the codes in FutureBuilder ...
0
votes
0
answers
36
views
Data not being added to Firebase collection ( cloud firestore)
I have a function in React native to add a chat as a collection item to Firestore database.
The function seems to be working but nothing is being added when I look at the cloud firestore.
Here is my ...