Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Questions tagged [firebase]

Firebase is a real-time application platform, optimized for building collaborative, asynchronous applications with mostly client-side code.

Filter by
Sorted by
Tagged with
2 votes
1 answer
57 views

I have the function which updates user data (currently only name). I would like to optimize its logic and particularly logic of updating participant name in chats. Currently I get entire chats ...
Andrian's user avatar
  • 113
3 votes
2 answers
130 views

This is my first time using FCM, and I had a lot of trouble finding up to date examples on how to send notifications using Firebase Cloud Messaging Notifications via FCM HTTP v1 API with PHP. I'd ...
tony's user avatar
  • 433
2 votes
0 answers
162 views

I'm new to MVVM architecture. I want to have authentication with email + password, google and Facebook. I'm not sure if there should be separate view models for each authentication way: ...
Edziu Kowalski's user avatar
1 vote
1 answer
453 views

I have built a basic app which uses firebase for authentication. The app is pretty simple. Sign up the user to firebase using email and password. Sign in the user Sign out the user Also, I have ...
DeveloperLV's user avatar
4 votes
3 answers
177 views

I don't know exactly what to name this, but I was refactoring a code snippet and looking at this constant users I thought I'd do this destructuring: Before: ...
ARNON's user avatar
  • 441
0 votes
1 answer
81 views

I wanted to check and see if this was as efficient as can be. The goal is to get a user's data from a group of documents that contains references to users in Firestore. ngOnInit ...
Sree Grandhe's user avatar
1 vote
1 answer
304 views

Background info To learn a new branch of my dev career, I've started a new project in my spare time (I've never used WebSockets before and I also want to learn more about common authentication flows). ...
htmn's user avatar
  • 208
3 votes
1 answer
180 views

I'm learning swift programming and i built a music trivia app for iOS that use firebase real time database. I have a function that before the game start get the number of record for each category of ...
salvatop's user avatar
2 votes
0 answers
162 views

How could this Firestore function be improved, please? This is a question to help us learn to write better code. So by improved, I don't mean made shorter... I mean made clearer as to what it is doing,...
Dan Leighton's user avatar
2 votes
0 answers
70 views

I built this code as part of a test project that was given to me by a company. They had given me a .csv file that contained over 9000 records and wanted me to build a program that would upload it to ...
HonorableTones's user avatar
4 votes
1 answer
180 views

I need to add search filters for firebase So that I can get search result easily and precisely I was altering the code from hereThis Medium Post I would like to optimize this code. ...
Asbah Riyas's user avatar
4 votes
1 answer
897 views

I've written a service for firebase that handles all my Firestore calls. The goal is to only read the database once on app init( load() function) and then keep a copy of the database inside local ...
Raphael Castro's user avatar
3 votes
1 answer
103 views

Context: gitlab link I know, it's a lot of code but I need your help ladies and gentleman. I'm not sure if I can ask for code review for the whole project so I just ask to review this activity. I ...
GalaktycznyRychu14's user avatar
6 votes
1 answer
1k views

Background info I have just started using/ learning how to use Next.js and developed a basic application which allows users to view several pages, some of which are authentication protected. Users ...
nopassport1's user avatar
5 votes
1 answer
236 views

I've written code that deletes a "post" the user has sent with my Android app. A "post" is made of an image (stored in Firestorage) named A, of a Firestore document named B which is the user UID (this ...
JarsOfJam-Scheduler's user avatar
3 votes
0 answers
244 views

I'm currently calling a fulfillment webhook with dialogflow in my node backend, performing crud operations on a firestore db. Is there a better, cleaner way to ...
devjacks's user avatar
5 votes
2 answers
202 views

There are different methods to get data from server in Angular application: Get Observable from the service and subscribe to it at component Create Subject at the service and subscribe to the Subject ...
Nikita's user avatar
  • 153
2 votes
0 answers
138 views

My Android app must request my Cloud Functions server to create in-app products at runtime ; then, the server responds with the created one-time product. I've written the server Cloud Function that ...
JarsOfJam-Scheduler's user avatar
2 votes
0 answers
267 views

I could use some help refactoring my component and service. I have a lot of nested logic and wasn't sure what I could do to improve this. I'm new to Angular 7 and their piping syntax. I suspect this ...
Jon Smooth's user avatar
2 votes
0 answers
45 views

I have this function where it queries through the database and returns a random user if the requirement is met if not then try it again. It works and all but I feel like the code could be better/...
Mohamed Mohamed's user avatar
2 votes
0 answers
98 views

I am developing another bigger project, I want to try a simple DatingApp and currently I try to develop a Login and Registration Form. There is no special register / login button, the code will later ...
J. Lo's user avatar
  • 43
1 vote
1 answer
2k views

I am practicing Singleton pattern in kotlin. It is a quiz app which has question tile with four options and one correctIndex. McqOldActivity.classs ...
Zar E Ahmer's user avatar
0 votes
2 answers
244 views

I am modelling a game which can be single (player1 vs player2) or double (pair 1 vs pair 2, where each pair contains 2 players) and each game has a score. The game is group and date based e.g. Group A ...
dragonfly02's user avatar
-2 votes
1 answer
724 views

My problem is this causes more lag as time goes on. I use this commonly to chat with my friends, and I need it the site to update in real-time whenever a message gets edited/deleted/added. Any ...
MilkyWay90's user avatar
2 votes
1 answer
154 views

I am trying to fetch a group of images within a place in Firebase database ref. I then loop through each image adding it to an array which is then supposed to be added to a tableview cell. I was ...
Q The Great's user avatar
4 votes
2 answers
120 views

I am attempting to make an eCommerce site from scratch. Right now I have the following code that gets all the items from a Firebase Firestore database and then adds HTML into an items div element ...
Jordan Baron's user avatar
1 vote
1 answer
143 views

I have an UITableViewCell class that written in Swift. And it seems to me that I did it the wrong way. It works fine, but I want improve the code or refactor it somehow to make it look better. Any ...
Kharitonov Aleksey's user avatar
2 votes
0 answers
890 views

I've been diving a bit into JavaScript for the first time in forever, generally trying things out, and getting acquainted. I gave my toy project the following requirements: single-page react app uses ...
user avatar
6 votes
0 answers
2k views

I'm about to go live with an app, and would, therefore, appreciate a review of my firebase authentication setup. I haven't been able to find many resources describing how to perform such ...
thilemann's user avatar
  • 161
1 vote
2 answers
115 views

I have code to ensure parameters existence all over the place. Is there a better way to do it? So that I do not have so many repeated codes inside different functions ...
XYZ's user avatar
  • 167
7 votes
2 answers
161 views

Purpose First, let me explain the title: I previously had managed my finances like an old fashioned company might, and it worked wonders for making financial decisions (at least for me). I wanted my ...
Vedvart1's user avatar
  • 173
4 votes
1 answer
903 views

There are so many different solutions and examples on how to build a proper networking layer, but every app has different constraints, and design decisions are made based off trade-offs, leaving me ...
AnonProgrammer's user avatar
4 votes
1 answer
687 views

I am "discovering" Firebase and I'm trying create simple chat with Vue, Vuex and Firebase. But because I'm just starting out with Vue, I need code review or advices from more experienced programmers. ...
user avatar
3 votes
2 answers
112 views

In my solution I've implemented transaction-like methods of uploading posts media. For example I'm adding new post with photo. I want to have 700x700, 200x200, 70x70, 10x10 px sizes in my storage and ...
Vlad Pulichev's user avatar
0 votes
1 answer
492 views

Does the following code demonstrate proper use of Strategy design pattern for a simple networking layer in swift 3? Some code smells I'm unsure about: violates Single responsibiility principle. ...
AnonProgrammer's user avatar
3 votes
1 answer
357 views

I have a method that calls three functions that each make a request to Firebase and pass back data in a completion handler. Once the data from 2 of the completion handlers is sent back, I call another ...
AnonProgrammer's user avatar
4 votes
2 answers
663 views

I have an app that I want to limit to both logged in and verified users. I was able to make two separate guards (logged-in.guard.ts and ...
Jeff's user avatar
  • 469
2 votes
0 answers
90 views

I made a hacky version of a chrome extension to compliment a weekly literary/arts publication. The extension helps me curate links from my publication's readers since there's only so much I can curate ...
Arihant's user avatar
  • 121
3 votes
1 answer
414 views

The end user will be able to see a list of staff that works at a church. The staff consists of 5 individuals with 5 different position titles (Minister, Pastor, etc.). This data is pulled from ...
Joshua Hart's user avatar
6 votes
1 answer
155 views

The following code is part of a big application. I am new to Go, and appreciate feedback on the best practices and improvements. Please consider styling and comments as well. Every 30 minutes, this ...
ceth's user avatar
  • 812
1 vote
0 answers
2k views

I'm new to Firebase and am a recovering SQL developer, so I haven't quite wrapped my mind around all aspects of firebase querying. I have an app that has basic functionality in place, but some aspects ...
Adam Till's user avatar
2 votes
0 answers
1k views

I'm trying to create a logical and scalable many to many relationship data structure in Firebase. A user can authenticate with Facebook/Google, upload 3 photos, and a video. Users can also "star" ...
hybrid9's user avatar
  • 121
7 votes
1 answer
230 views

I'm currently having a bit of code, which I just know can be improved a lot. I am just blind to it. All of my code looks quite neat to me, except these parts... The login + authentication process is ...
Ivafo's user avatar
  • 173
11 votes
0 answers
2k views

This is the application for small school, which will store students' info in Firebase and also retrieve data from Firebase. I am using JSON Parser to parse the data and save the same in Access tables. ...
Adarsh's user avatar
  • 259
2 votes
0 answers
2k views

I have written a helper class to manage callbacks from Firebase's asynchronous calls. Can this be implemented in a better way? ...
Ishank Gulati's user avatar
7 votes
0 answers
4k views

I am using react-native-router-flux to organize the routes for my application. Using Firebase, I am able to call ...
szier's user avatar
  • 315
1 vote
1 answer
2k views

Firebase v3 Offers Authentication via 3rd party oAuth providers, facebook, github,google, and twitter. They also offer password pased authentication. Authenticated users have a firebase.User object ...
Ronnie Smith's user avatar
1 vote
2 answers
4k views

I have the following snippet code which, within a loop, creates a JavaScript object where some of the properties maybe undefined: ...
Matt D. Webb's user avatar
3 votes
1 answer
1k views

I currently have an app that uses Firebase for logging users in and I would like to know if I can make this code any better. I currently have 4 files: auth/models/User.java auth/BaseActivity....
Alexiz Hernandez's user avatar
2 votes
1 answer
495 views

The goal for this code is to provide a semi-secure and privileged method of user registration via a secret code that is stored as a key in the Firebase database. Subscribers to a mailing list were ...
Mox's user avatar
  • 257