Questions tagged [firebase-realtime-database]
Firebase Realtime Database is a cloud hosted, NoSQL, JSON database that provides offline caching and synchronization. Do NOT use this tag for questions about Cloud Firestore; instead use the [google-cloud-firestore] tag.
37,923
questions
0
votes
0
answers
6
views
How to filter item in RecyclervView connected to firebase with onclick listener android
I am creating an app where users can search items on the search view bar. Firebase realtime database, recyclerview, searchview are already set up but I am having a problem. So when the app opens, the ...
0
votes
0
answers
8
views
firebase function deploy failed
I need to deploy my cloud function on firebase, but I get this error:
Error: Failed to load function definition from source: Failed to generate manifest from function source: Error: Invalid Firebase ...
-2
votes
0
answers
13
views
Developing Android App using firebase realtime database someone is changing values in my database
I have an android app published on playstore. The hacker is changing values for example coins values in app using luckypatcher or guardian or similar apps. I am not able to understand how his changes ...
0
votes
0
answers
6
views
How to observe Firebase child values in JavaScript
How can I observe a child's value in JavaScript. In Swift you simply put:
ref.child("user").observe(.value) { (snapshot) in
let userId = snapshot.key
}
What ...
0
votes
1
answer
26
views
Flutter setState causes infinite loop
I am newbie at Flutter, I want to fetch data once from Firebase but when I use foreach in setState, it gives infinite loop. I tried initState but I couldn't figure it out with Future.
Here is my code:
...
0
votes
2
answers
20
views
flutter update all entries that have a specific item - firebase-database
How do I update many database entries at the same time that have a specific entry
In this case, all "posts" with the entry "8th St" at "street" should be updated, the ...
0
votes
0
answers
14
views
react native error "rendered more hooks than during the previous render"
i'm using react native to make an app connected to firebase
I need to get the name of the user profile picture to display the correct one in my app
The pictures are stored on firebase storage
My code ...
0
votes
0
answers
8
views
databaseAuthVariableOverride not limiting permission to cloud admin sdk
I am using databaseAuthVariableOverride in cloud functions to Initialize firebase with a custom auth variable to limit its permissions, however it is still acting with full write and read permission.
...
0
votes
1
answer
15
views
Can't catch exception Firebase Realtime database
I am trying to throw a message when the password is less than 6 characters, but I can't catch the exception.
final email = _email.text;
final password = _password....
-3
votes
1
answer
24
views
How to call RealTime data from firebase to Solana Smart contract [closed]
I want to write a smart contract on Solana for calling data from firebase realtime database. And on the basics of that data token will distribute among users. But I didn't get any resource on google.
...
0
votes
0
answers
8
views
fething data from Firebase using listview in andriod studio
my app is crushing , can anyone tell what is the problem ??
**
error is :
2022-05-19 11:54:40.455 6609-6609/com.example.adapterclasswitsimpleoverview E/AndroidRuntime: FATAL EXCEPTION: main
Process: ...
0
votes
1
answer
23
views
How can I change an Icon in flutter when i add a new Entry in my Database?
So i set up a working Realtime Database, to which i can add entries. Now i want to notify the user whenever a new entry was added to the Database by adding a little Red Dot to the Icon in the ...
-3
votes
0
answers
30
views
why this code not work. can you help me how can i fix this? [closed]
I was following a project tutorial. The code in the project is written like this, but this code is not working anymore. Maybe the reason is the version update of firebase.
uploadimage(String id) ...
0
votes
0
answers
14
views
Getting Error after using Applovin plugin Android Studio
My App was working perfectly and smoothly without adding the applovin SDK, how do I solve the issue of the problem that I encountered?
Here's my Gradle file (Root)
buildscript {
repositories {
...
-1
votes
0
answers
35
views
How can I add data from Android Studio to Firebase Realtime Database? [closed]
I want to add some events to this project but I cannot add any values. When I clicked to button for adding values from editTexts and checkBox, I cannot see added data in my Firebase Realtime Database....
0
votes
0
answers
28
views
Firebase keeps sending me insecurity warnings for my real time database even though my rules prevent root level access
I have a public website that I share with a few of my colleagues and I am using firebase hosting and a real-time database to store my data. Below you will see my security rules. Firebase keeps sending ...
0
votes
1
answer
27
views
Firebase Realtime Database won't store users [duplicate]
I am making a Tinderr clone and i want to store the users in the realtime database of Firebase. I have followed the documentation and multiple youtube vids but nothing works. The users do get stored ...
0
votes
0
answers
5
views
How to see detailed logs of all activities of GCP Firebase - RealTime DB in Cloud Logging
V limited operations are seen in logs like create DB instance and List instances. How to see all read/write operations for Realtime DB in Cloud Logging.
0
votes
0
answers
8
views
Firebase RTDB updating - Array Duplicates
I have a rather simple application that allows people to post some posts like Instagram.
Im working on the like functionality. heres what ive done so far.
const [posts, setPosts] = useState([]);
my ...
0
votes
0
answers
8
views
How to return Firestore snapshot data in nuxt 3 server api
I have an api where I call data from my firestore backend using firebase admin. It works if I use the get() command, but I want to listen to realtime changes. How do I rewrite my code to listen using ...
0
votes
1
answer
20
views
"The method 'cast' isn't defined for the type 'Object'" when reading from Firebase
I create banner in listview and get the data from firebase database.
Future<List<String>> getBaners(DatabaseReference bannerRef){
//The method 'cast' isn't defined for the type 'Object'.
...
0
votes
1
answer
23
views
DataSnapshot.getChildrenCount has error "The getter 'getChildrenCount' isn't defined for the type 'DataSnapshot'."
I am trying to get a count of how many children are in a path. I could not find anyone else with this problem.
0
votes
0
answers
19
views
Firebase Push Notifications Statistics
Good Afternoon,
I need to get the statistics or metrics per application of push notifications from Firebase Account with c#, At the moment I use the Firebase Admin SDK but this SDK no have a method or ...
0
votes
0
answers
27
views
Google Cloud Functions 2nd Generation with Firebase Database trigger
I'm trying to update my function from cloud function 1st generation (java 11) to 2nd generation. Apparently some changes imply that the old implementation of the functions through Cloud CLI doesn't ...
0
votes
1
answer
22
views
Firebase RTDB - Get document ID?
how can i retrieve document IDs in a useEffect using firebase realtime database?
This works great but however i need every single document id aswell.
1
vote
0
answers
27
views
How to make a sound when there is an increase in the counter but not a decrease
I am making a call to my firebase database as follows:
//reference from firebase for enquiries
const Ref = projectDatabase .ref("list").child("enquiries");
Ref....
0
votes
0
answers
17
views
How to return the snapshot.val() to be used later in the code
I am using the firebase realtime database web version 9, and I am trying to return the value of snapshot.val() as a variable to be used later in testing. when I console.log(snapshot.val()) it logs the ...
0
votes
0
answers
11
views
Getting 'EventSource' to work with firebase realtime in javascript
I am trying to make a code that originally worked with Arduino-Code and Javascript(Three.js), to work with Firebase and Three.js, but have run into a bit of a pickle. The code is supposed to move a ...
0
votes
0
answers
5
views
How to give access to the specific path of my Firebase server to some users?
I am new with front end and Vue in particular.
To learn I am building now very simple budget app for my daughter. There are 2 input fields: one for income, another is for expenses. My daughter will ...
0
votes
0
answers
21
views
How can I complete data from Firebase to ArrayList? [duplicate]
There is a User object, and from the given collection you want to output all the numbers. In order to compare the uniqueness of the number. The data can be output to the console. But it cannot be ...
1
vote
1
answer
33
views
Adding multiple comments to a child in firebase
I want to add comments on a child with Firebase.
But how can I raise the number of the comment?
let object: [String: Any] = [
"name": "testname",
"...
0
votes
0
answers
17
views
Bad state: cannot get a field on a DocumentSnapshotPlatform which does not exist, Receiver: null Tried calling: get("Name")
I am trying to get the data of currently signed in user in profile screen of my app. Below is the code of getting the data of currently signed in user from the firebase. The field (Name) of which it ...
0
votes
1
answer
24
views
I need add data one by one in List Model from firebase realtime database
I got this error when am trying to add the results in the list
The argument type 'Object?' can't be assigned to the parameter type 'Map<String, dynamic>
my code is
List<roomsModel> room2 ...
0
votes
0
answers
20
views
Register Sign In with fiebase is not working
Althought my code has no errors whenever I fill all the champs (FullName, email,..) and click the Register Button the data doesn't get uploaded to the database and keeps saying "Failed to ...
0
votes
0
answers
11
views
Redux thunk returns value before fetching data
I'm trying to fetch data from firebase Realtime Database and put it into the store.
Fetching data from Firebase has no problem. It works fine.
The problem is that the thunk is fulfilled even before ...
0
votes
0
answers
23
views
Firebase loading data slowly into flutter app
I need to get data from firebase into flutter app but I have about 200 lines of data and would like to find a way to make it better and stream line and this is two weeks after the app went live so we ...
0
votes
1
answer
23
views
Xcode - push data into the firebase storage
I thought to design the program like this.
The user type the data in each text fields; Name, Passwords and Comments.
By press the button, store the input data into the Firebase storage.
However, the ...
0
votes
0
answers
27
views
How to add image URL from storage to realtime database in android kotlin
I'm trying to upload image reference to realtime database from storage but I'm getting an error as: "Object does not exist at location".
This is the code for uploading images to storage as ...
0
votes
1
answer
29
views
How to get only specific read data from firebase for a particular child node
Heyy Developers, I'm creating a Tv series app in which I store Season no, episodes no, etc. For storing data I'm using Firebase realtime database but I want to retrive Season no only in a recyclerview ...
0
votes
0
answers
21
views
Query Firebase Angular: Retrieve record based on Primary Key
I have a form in a single web app I'm doing. One of the parameters is a drop down list which is populated with the email of the users on the system. The reference I'm using for this is their key ...
0
votes
1
answer
15
views
Firebase Security Rules for Realtime database
I am trying to set rules for the firebase Realtime Database. Rules are set to
"rules": {
".read": true,
".write": true
}
This makes it public but I want to set it to ...
0
votes
1
answer
44
views
Flutter Firebase realtime database fetching the wrong node
I have been trying to get a particular field in realtime database. The result is not the one I expected.
Version used Flutter - 3.0.0 firebase_core: ^1.17.0 firebase_database: ^9.0.14
This is the ...
0
votes
0
answers
10
views
Why is my code not getting the latitude and longitude of my location in google map
I want to create a database reference in firebase whenever a particular user is online and at the same time store the latitude and longitude of that online user into firebase database by using Geofire....
1
vote
2
answers
36
views
Flutter Firebase Realtime Database get the Object Key in Query
I am new to FLutter and learning it to my own. I want to get the object key using the query from Firebase Realtime Database as highlighted in below screen shot:
My Query Method is:
void queryDB(...
1
vote
0
answers
28
views
+100
Update Firebase Realtime Data Base Specific Value in an Object
I am learning Flutter with Firebase. I have some dummy data in Firebase Realtime Data base as:
{
"postsnode": {
"posts": [
{
"postId": "u1",
...
0
votes
1
answer
27
views
Firebase Rules to register users and allow users to login
I am using firebase real time database in my android app. I want users to register in my app with some checking and validation. if i set the rules such as:
{
"rules": {
".read&...
0
votes
0
answers
15
views
react firebase daily write limit
How to add firebase realtime-database daily write limit for any users?
I found firebase functions schedule when I searched. But it didn't work either and I got errors
My firebase data tree:
-blogs
...
0
votes
1
answer
37
views
Getting sensor-values from firebase realtime down on website using js (using ESP32)
I am fairly new to this, but I have searched (I think) all questions and I am starting to get a tiny bit insane.
My end-goal is to use a gyroscope placed on the leg, to use the leg as a joystick for ...
0
votes
0
answers
19
views
How can I deploy a scheduled firebase function? [duplicate]
I have developed an app in Android studio and now I want to deploy a scheduled firebase function. My app contains various users and each user have a node named "clicksRemain", I want that ...
-1
votes
0
answers
21
views
ufirebase.py and esp8266.py integration
So I've been trying to install the usocket.py library on my raspberry pico, but with no results to show for it so far. I'm rather new tot he scene, so I wouldn't be surprised if I'm missing something. ...