Skip to content
Advertisement

Tag: firebase

Firebase firestore problem ‘Make sure to call FirebaseApp.initializeApp(Context) first’

I’m doing a new project in Android Studio. I’d like to make my project in latest version and with Firebase Firestore to keep data. I know that i need to put apply plugin: ‘com.google.gms.google-services’ but i don’t find how .. and with lot of research, someone said that it is included in the ‘com.android.application’.. I have included my google-services.json in

Get IDs of deleted documents in firestore

I have a big collection with several thousand documents. These documents have subcollections with documents inside. Now I deleted a lot of the documents on the highest level. Structure: MyCollection => MyDocument => MySubcollection => MySubdocument Now I realized, that the files are deleted (not showing up in any query) but the subcollections and their documents still exist. Now I

How can I retreive values from firebase (one to many relationship)?

I can’t access name, imageurl and other properties because snapshot.getvalue returns true How can I retreive values from firebase having one to many relationship? Answer You’re trying to read the name, description and other properties from the “item01”: true node. That won’t work, since the properties don’t exist on that node. You’ll instead need to load the snapshot for that

Put firebase data in a JTable

I am struggling to put some firebase data into a jtable in java swing. As seen in photo I’ve been able to retrieve the data from firebase but for some reason the data won’t be displayed in the JTable field(table1) I looks like the getID(), getName()… methods didn’t get any value, since I tried to print row[i] to see if

Firebase Authentication email

Currently, I am working on an Android project. I started the project with sign up and login pages using Firebase. It goes like this: A new user enters the required details with email and password as login credentials. Meanwhile, a verification mail is sent to the provided email address, the user needs to verify the authentication by following the link

Advertisement