firebase-realtime-database

RecyclerView in React Native: notifyItemInserted() and notifyDataSetChanged() have no effect

喜夏-厌秋 提交于 2019-12-30 11:12:25
问题 I am experimenting with integrating a Firebase-backed RecyclerView in a React Native app. With hardcoded data it works well, but upon inserting rows loaded dynamically and calling either notifyItemInserted() or notifyDataSetChanged() on the RecyclerView.Adapter, the RecyclerView itself does not reflect the change. This manifests as an initial blank view until the app's refresh button is tapped, which has the sole effect of re-rendering the RecyclerView from the React Native side, or until

Android - How to retrieve list of objects in their insertion order from Firebase?

女生的网名这么多〃 提交于 2019-12-30 10:49:22
问题 What do I want? I want to retrieve the list of objects in their insertion order from Firebase Database. How am I adding the object to list in Firebase database? mRefUser.push().setValue(new MessageItem()); mRefUser.push().setValue(new MessageItem()); . . mRefUser.push().setValue(new MessageItem()); How is it getting added? Firebase stores each object as key value pair in HashMap. How am I retrieving these values? mFireBaseRefnew.addValueEventListener(new ValueEventListener() { @Override

How to customize domain name of firebase database, auth and storage?

*爱你&永不变心* 提交于 2019-12-30 10:14:10
问题 I know that I can customize domain name for firebase hosting. But how can I customize the firebase database, auth and storage domain name? eg. authDomain: example.firebaseapp.com => auth.example.com databaseURL: example.firebaseio.com => db.example.com storageBucket: example.appspot.com => storage.example.com I tried to cname the domain (eg cname auth.example.com to example.firebaseapp.com) but this cause the https://auth.example.com shows the certificate error. can I resolve that? 回答1:

Get Created date and last login date from FIRUser with Firebase 3

喜夏-厌秋 提交于 2019-12-30 09:58:27
问题 I just want to get the created date and the last sign in date of a user with firebase, my plan is to let user login with Facebook and then signup and add new information and save the user in the real time database with the created date and last login date, so how to keep the date un sync with the Firebase system after saving them, or should I just use those f FIRUser and do not save them in the real time database Question 1: how to get the created and last login date from FIRUser like

Get Created date and last login date from FIRUser with Firebase 3

好久不见. 提交于 2019-12-30 09:58:06
问题 I just want to get the created date and the last sign in date of a user with firebase, my plan is to let user login with Facebook and then signup and add new information and save the user in the real time database with the created date and last login date, so how to keep the date un sync with the Firebase system after saving them, or should I just use those f FIRUser and do not save them in the real time database Question 1: how to get the created and last login date from FIRUser like

Firebase java object serialization and Inheritance [duplicate]

故事扮演 提交于 2019-12-30 09:54:11
问题 This question already has answers here : How to deserialise a subclass in Firebase using getValue(Subclass.class) (4 answers) Closed 3 years ago . Does it also serialize inherited properties? @IgnoreExtraProperties public class Item extend BaseObservable { private String foo; public Item() { } @Bindable public String getFoo() { return this.foo; } } 回答1: I just ran into the same issue and found your question. While I could not find a definitive answer elsewhere, some experimentation revealed

Is it possible to connect to a Firebase Database to a different Firebase Project?

落爺英雄遲暮 提交于 2019-12-30 07:44:30
问题 I have two android apps (A and B) and both have separate projects on Firebase, Currently I am working on a feature which would lets me send messages between app A and app B using FCM. Due to both apps being in different projects, I am unable to do this and It is not possible to put both the apps on a single project due to some other reason. So I was thinking if I could create a messages table in app A and access the same from app B and implement my messaging feature. Is it possible to do this

Firebase Database in SQL

﹥>﹥吖頭↗ 提交于 2019-12-30 06:40:10
问题 I would like to know if it is possible to use Firebase as a SQL database. I have trouble with relations in NoSQL. For example: a user belongs to a team, and a team has users. 回答1: It is not possible to use Firebase in this way. Firebase is a real-time object store. It is not a SQL database and is not intended to be a replacement for one. It completely lacks mechanisms such as JOINs, WHERE query filters, foreign keys, and other tools relational databases all provide. That doesn't mean it isn't

Firebase Database in SQL

时光怂恿深爱的人放手 提交于 2019-12-30 06:39:02
问题 I would like to know if it is possible to use Firebase as a SQL database. I have trouble with relations in NoSQL. For example: a user belongs to a team, and a team has users. 回答1: It is not possible to use Firebase in this way. Firebase is a real-time object store. It is not a SQL database and is not intended to be a replacement for one. It completely lacks mechanisms such as JOINs, WHERE query filters, foreign keys, and other tools relational databases all provide. That doesn't mean it isn't

How to upload an image to Firebase storage?

混江龙づ霸主 提交于 2019-12-30 06:01:11
问题 I'm trying to upload a simple byte array into Firebase storage, but my onFailureListener keeps getting called and logging back to me saying that the upload failed. I'm hoping you guys can tell me whats wrong with my code. At the top I got //Firebase private Firebase mRef; private StorageReference storageRef; Then in onStart() @Override protected void onStart() { super.onStart(); googleApiClient.connect(); //Firebase mRef = new Firebase("link to firebase account"); FirebaseStorage storage =