All Questions
Tagged with flutter firebase-realtime-database 
        
            
                1,520 questions
            
            
            1
            vote
        
        
            0
            answers
        
        
            36
            views
        
    Firebase Realtime Database not working properly when offline on ios
                I am trying to create a counter app on flutter using firebase realtime as my database. Have enabled persistence and also syncing all the paths to enable offline capabilities. Everything works fine on ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            36
            views
        
    Flutter: How to use GoRoutes correctly with Firebase Auth
                I have a Flutter app where I use GoRouter for the routing part, FirebaseAuth for the authentication, Riverpod for the state management and Firebase Realtime for the database.
When a user registers on ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            67
            views
        
    Flutter Firebase Database loads indefinitely on IOS
                I have a flutter app where I use Firebase Auth and Firebase Database.
The app works fine on my android phone. I am able to authenticate and add data to the database.
The issue is on Iphone. The ...
            
        
       
    
            -1
            votes
        
        
            1
            answer
        
        
            42
            views
        
    Getting server timestamp of Firebase Realtime Database in Flutter/Dart
                I am using Firebase Realtime DB for a messaging app written in Flutter. Whenever the user sends a new message, the message receives the timestamp of the client. This is obviously insecure. Therefore I ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            29
            views
        
    Flutter with Firebase Real Time Databases
                I'm new to Firebase Real Time Databases.
In my Flutter App I'm trying to set up a connection to my database but unfortunately I can't fetch any data. From my knowledge I set everything up as it's ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            17
            views
        
    flutter web make invalid path error when using realtime database emulator
                I'm working with flutter and realtime database emulator.
When i try to read from database by using .get() following error occur.
Error: child failed: path argument was an invalid path = "http://...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            45
            views
        
    Handling Player Termination in a Flutter Multiplayer Game with Firestore and Firebase Realtime Database Presence
                I am building a multiplayer game in Flutter using Firestore to handle real-time updates. One of the cases I need to address is when a player fully terminates the app. In this case, Firestore should be ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            42
            views
        
    Firebase Realtime Database .info/connected listener always says "false." (Flutter)
                In a Flutter/Firebase app, I am trying to have a way of tracking whether users are "online" or not (for purposes of having a directory filterable by "is Online", for exmaple).
At ...
            
        
       
    
            2
            votes
        
        
            2
            answers
        
        
            94
            views
        
    Firebase Authentication: Email validation always returns "Email not registered" in Flutter
                I'm working on a Flutter app where I'm using Firebase Authentication for email and password sign-in. The app has a flow where users first enter their email on the sign-in screen. After they click &...
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            53
            views
        
    Firebase call exception
                I'm trying to make simple login logic using Firebase but can't get rid of this error:
Exception has occurred.
DartError: Bad state: Cannot fire new event. Controller is already firing an event
Here ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            22
            views
        
    Flutter: Multiple data insert in firebase real-time database but app is stuck
                Future<void> addExpenseInDatabase(BuildContext context) async {
    Map<String, dynamic> splitByMap = {};
    Map<String, dynamic> paidByMap = {};
    for (var element in splitByList)...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            52
            views
        
    I am facing problem after connecting to firebase
                The error is
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\flutter-apk\app-debug.apk
Installing build\app\outputs\flutter-apk\app-debug.apk...
Error: ADB exited with exit code 1
...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            21
            views
        
    flutter app fire base firestore database configuration error for run time app
                Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
2
: Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            17
            views
        
    show the recently played songs in flutter
                I fetched data of songs from firebase realtime database, now I have to show the recently played songs in my app in flutter, assume all music playing functionality is proper.
am confused in what to try,...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            30
            views
        
    VideoPlayer Android12 not working but iOS does work
                I am uploading videos to firebase storage with a method that handles both images and videos. The list of assets are given from PhotoManager; List<AssetEntity> and are converted into bytes to be ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            22
            views
        
    User details doesn't get registered in firebase when signing in from my Flutter app
                I'm developing a mobile app using Flutter and use Firebase for backend services. I'm using Firebase Authentication for authentication. The method is email and password. However when signing up the ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            34
            views
        
    Unable retrieve user Data from realtime database firebase in flutter dart
                I am unable to retrieve user data such as name from my firebase real time database. My datasnapshot at this line is always null so it fails the next check.
var dataSnapshot = await _dbRef.child(_user!....
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            43
            views
        
    My flutter login Page gives this error, Null check operator used on a null value See also: https:/'flutter.dev/ docs/testing/errors
                I am developing a PLant Disease Detection app using Flutter, and despite my best efforts, I encountered an unexpected error. I am creating a login page for my disease detection app, below is my code. ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            45
            views
        
    when i am clicking button on flutter screen app also api is hitting ,but on my terminal nothing is print and not showing any changes
                \`void initState() {
settoken();
print("=dateOrPartnerCollection==\>${GlobalData.getdateOrPartnerCollection()}");
WidgetsBinding.instance.addObserver(this); //! inwidget
...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            68
            views
        
    Issue: Duplicate Items in Infinite Scrolling Firebase Leaderboard in Flutter
                Code Explanation
The provided code implements an infinite scrolling feature in a Flutter app that retrieves leaderboard data from Firebase Realtime Database. Here's a breakdown of how the code works:
...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            154
            views
        
    How to Display User Profile Image and Name in AppBar of Chat Screen in Flutter?
                I'm building a Flutter app where users can chat with each other. I have implemented user authentication and can store user profile information such as the profile image link and name in Firestore. Now,...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            30
            views
        
    Fetching data from Database Realtime to Model List and use it in Bloc
                I don't know how to fetch data to Model List correctly in void without a Stream Builder, because i want create a List and share it to Bloc State, so i can use a Bloc Builder inside multiply screens.
I ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            190
            views
        
    Flutter testing with Firebase real time DB - Unable to establish connection on channel
                I am trying to create an app with Anroid Studio using Flutter that uses Firebase as a realtime DB. I want to create some tests to check if the data downloaded/sent to the DB are retrieved/sent ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            42
            views
        
    (Flutter Web) Trying to stream data on Firebase Realtime Database REST API
                I was trying to code my own API logic using RTDB Rest API. So don't recommend me to use firebase_database package!
The stream work great on dart console, mobile, desktop but when i debug on web, it ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            58
            views
        
    Google map is shaking while marker is moving on the surface of the map (Flutter + Firebase realtime database)
                I'm using google_maps_flutter, flutter_polyline_points and firebase_database packages in my Flutter project.
I have another app which is for driver and it's live location is shared with firebase ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            47
            views
        
    is there a way to filter through a list of data in firebase database
                From userlocation how do I filter users from the same city using firebase database flutter. I've checked google and the documentation nothing has worked and its driving me crazy. with the ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            113
            views
        
    The following UnsupportedError was thrown building SideTitlesWidget(dirty): Unsupported operation: Infinity or NaN toInt
                im trying to display data with flutter from firebase realtime database. the display will be shown as linechart data with fl_chart. to display this data, the linechart is wrap with streambuilder. but i ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            23
            views
        
    firebase realtime database always ConnectionState.waiting
                final dbRef = FirebaseDatabase.instance
        .ref("messageData/${widget.idKonsultan}${widget.idUser}");
StreamBuilder(
  stream: dbRef.onValue,
  builder: (ctx, AsyncSnapshot snapshot) {
...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            44
            views
        
    I am trying to read data from firebase realtime database but snapshot is marked in red
                StreamBuilder(
              stream: _database
                  .child("orders")
                  .orderByKey()
                  .limitToLast(10)
                  .onValue,
              ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            40
            views
        
    Flutter fetch certain child after equalTo
                I want to retrieve data from Google Firebase RTDB.
My Current Structure in RTDB is like this:
"organization"
- 2024-05 (yearMonth)
--- organizationId
------ audits
----------- audit_id
------...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            54
            views
        
    Why is the reference crossed out when getting a reference when using a firebase database in Flutter?
                this is the problem.
I want to use realtime database with firebase and this problem is preventing me.
I think I'm using the old technique.
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            70
            views
        
    Firebase Realtime Database security rules not working in selected node
                I have a problem with realtime database security rules. I can't add rules for the exact node I'm querying without getting 'PERMISSION DENIED' error.
As I want to check the last part of the patch for ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            22
            views
        
    How do I store my user details into a collection on firebase database while using the flutter fire ui authentication
                I want to store the details of the user in a collection in my firestore database when I signup with the flutter fire UI auth package. so I can update the user details when I click on the profile ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            36
            views
        
    Firebase Realtime - Flutter - Listen async
                I need help as I need to call asysc on my listener somewhere and if my date updates my app freezes.
I am sure it's due to my call to the Firestore not done correctly
late List<Data> sensorList = ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            46
            views
        
    How do I add data to a specific firestore database
                I have two firestore database in my firebase project. How do I add data to a specific database.
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            55
            views
        
    Nested Map access key value
                In my Firebase Realtime database my schema is.
My model is
class Data {
  final double data;
  final DateTime timestamp;
  Data({
    required this.data,
    required this.timestamp,
  });
  ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            31
            views
        
    Flutter Realtime Database [firebase_database/unknown] Could not convert
                I am getting the following error when trying to write data using firebase realtime database:
[firebase_database/unknown] Could not convert
dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            21
            views
        
    show in flutter a list view of documents in the realtime database whose name is in a list in the firestore database
                I'm developing a flutter application in visual code, and I really need to be able to use both databases of Firebase simultaneously. I can't show the documents in the realtime database whose names are ...
            
        
       
    
            1
            vote
        
        
            6
            answers
        
        
            6k
            views
        
    How to resolve error loading FirebaseOptions from resource? (PlatformException: java.lang.Exception)
                I'm trying to create a simple signin/signup application with Firebase, but I'm encountering the following error.
Already tried flutter clean .
E/flutter ( 4727):
[ERROR:flutter/runtime/...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            63
            views
        
    Firebase database get data of child with limit and start/end at
                post:{
  pushKey1:{
    text:1,
    user:user1
  },
  pushKey2:{
    text:2,
    user:user1
  },
  pushKey3:{
    text:3,
    user:user2
  },
  pushKey4:{
    text:4,
    user:user1
  },
  pushKey5:{
 ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            113
            views
        
    Firebase realtime database - add data to existing node
                I am trying to append data to the node that already exists. As you see at the image below.
I was trying to use set or update but i couldnt get the right result with both of them. I tried to use push ...
            
        
       
    
            3
            votes
        
        
            1
            answer
        
        
            821
            views
        
    Instance of 'ClientException': type 'ClientException' is not a subtype of type 'JavaScriptObject' data assigned
                Future<void> getArticles() async {
    final QuerySnapshot querySnapshot = await collectionReference.get();
    final articles = <ArticleModel>[];
    for (final doc in querySnapshot.docs)...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            55
            views
        
    How to read nested lists of objects firebase database flutter
                i am trying to retrieve a list of nested objects in firebase realtime database in flutter
here is the data:
let me explain:
i have a list of Lessons
every lesson has
id
pdfLink
title
and a list of ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            102
            views
        
    Data on 'Firebase Realtime Database' is not updating from my Flutter app
                I'm learning Firebase Realtime Database (with Flutter). I'm facing a problem which is that when I send data from my app to Firebase Realtime Dattabase, it is not updating.
I'm entering the project ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            529
            views
        
    how to retrieve list of objects from firebase real time database in flutter
                I have the following list of objects in my Firebase Realtime Database:
It is an object called Year, which has id and year values.
Here is the year model I built:
class YearModel {
  int? id;
  String?...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            46
            views
        
    Why am I not able to see other user's markers which are stored on RTDB Firebase on Google Map Flutter
                The issue is that I can only see my own marker on Google Maps while not of other users even tho the other users data (i.e. Latitude & Longitude) are stored on Realtime Database.
Below you can see ...
            
        
       
    
            -1
            votes
        
        
            1
            answer
        
        
            89
            views
        
    Are there any costs associated with adding an "indexOn" to Firebase Realtime Database security rules? [closed]
                My team has three large Realtime Database shards, each one is several TB. We would like to add an index so that queries can be ordered by timestamp. Before adding the index this warning is displayed:
...
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            179
            views
        
    i am getting error when using firebase realtime database in flutter application
                i am not able to send data in firebase realtime database in flutter application.
getting this error :-
Firebase Database connection was forcefully killed by the server. Will not attempt reconnect. ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            45
            views
        
    ListView Builder is not returning any text when calling list
                I've found that if I change my itemCount to a number it still doesn't work but if I change the itemCount & comment out the teamServices call there and in the column, it will display the text Hello....
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            53
            views
        
    I want to Firebase Realtime Database rules include auth.uid
                This is my DB:
Each key was created by combining the user name.
I want to make sure that only the members within each piece of data are accessible.
{
  "rules": {
    "chatroom": {...