Issue I want to create a model user like this : @JsonSerializable() class User { final String id; final String email; final bool isAdmin; final bool canDeleteUser; final bool canCreateUser; final String nom; final String prenom; final DateTime createdDate; final
Continue readingTag: firebase-realtime-database
Create infinite scrolling effect using Firebase Realtime Database data in flutter
Issue I am integrating a chat feature in my mobile application, and decided to use Firebase Realtime Database for the backend instad of Firestore as a cost reduction mechanism. I am running into a problem, however. There seems to be
Continue readingFirebase Realtime Database not ordering data correctly in ListView.builder
Issue I am currently integrating a chat feature in my mobile app and ran into an issue when ordering Firebase Realtime Database documents by their timeStamp. This is the code that is run on initState getStartData() async { DatabaseReference starCountRef
Continue readingHow to disable onDisconnect? – Java
Issue I have a code snippet below that adds a number to the database at a specific path if the user has logged out of the application. I have a question, how can I make it so that onDisconnect does
Continue readingHow to deal with object from Firebase Realtime Database in Flutter
Issue I am having trouble dealing with object type in realtime database in firebase. I want to convert it into json format. I searched but found none regarding this topic. To be clearer, I am using onValue to listen for
Continue readingHow to check if a Firebase App is already initialized on Android
Issue With the following, the first time it’s called it works, but then fails on subsequent calls with “FirebaseApp name [DEFAULT] already exists!” public FirebaseDatabase conn(Context c) { FirebaseOptions options = new FirebaseOptions.Builder() .setApiKey(“key”) .setDatabaseUrl(“url”) .setApplicationId(“ID”) .build(); /////I tried Try
Continue readingNot able to get a list of documents from Firebase Subcollection Flutter
Issue I am creating an application where I need to have 3 heirarchy for email folders and notes like this: Now I’m not able to get the list of documents under the folder collection. I have tried this till now:
Continue readinghow to use firebase referral system in dart?
Issue I want to implement the firebase dynamic links and reward the users if another user install from the referral link. I was looking at the firebase documentation for this but how can we implement this in flutter as I
Continue readingFirebase database diagram
Issue I’m trying to do a sample app where I have some users and then I have another table named products, and each product is assigned to a user I’m creating this diagram but I’m not sure if it’s optime
Continue readingAndroid Room and Firebase in a MVVM Architecture – Offline First Application
Issue Can Android Room Database be used as an (offline/local data source) and Firebase Database as the (online data source) in an MVVM repository (gluing the data together) refer to the figure below. Having the same database table and column
Continue reading