firebase-realtime-database

Do firebase cloud functions involve costs for realtime db and firestore?

巧了我就是萌 提交于 2020-07-03 03:57:05
问题 I am running a cloud function whenever a firestore document is updated. The function reads the document, gets the user IDs and then takes the user token IDs from the realtime db and sends notification. So we have 1 document read here and some download overhead associated with the reads on the realtime db. My question is : If cloud functions reads a node of the realtime db, will the downloads (for the read on the realtime db) be billable? If cloud functions reads a document of firestore, will

Firebase, login by same email different provider

六月ゝ 毕业季﹏ 提交于 2020-07-01 03:56:05
问题 I want my users can login using many different provider but they will get same result if they use only one email address. For example, in stackoverflow I can login by Facebook, Google ... but I still can keep my profile as well as my posts ... In Firebase Web, for example if my user created an account with email/password provider, his email="ex@gmail.com" password="123456". This account has uid="account1" and I use this uid as a key to store additional information about him in Firebase

Firebase, login by same email different provider

戏子无情 提交于 2020-07-01 03:55:36
问题 I want my users can login using many different provider but they will get same result if they use only one email address. For example, in stackoverflow I can login by Facebook, Google ... but I still can keep my profile as well as my posts ... In Firebase Web, for example if my user created an account with email/password provider, his email="ex@gmail.com" password="123456". This account has uid="account1" and I use this uid as a key to store additional information about him in Firebase

Firebase Storage - Link not created

一曲冷凌霜 提交于 2020-06-29 04:40:06
问题 I am trying to upload an image and a document to the firebase storage and upload the links created from both to the Real-Time DB, everything happening on a button's click. But in the firebase DB, the links are not uploaded while the other text I upload along with them is there. Storage upload code: updata.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { //before uploading both the doc and img.. progressDialog.setTitle("Uploading Images");

In Adapter class, how can I call startListener() and stopListener()?

爷,独闯天下 提交于 2020-06-29 04:39:43
问题 Multiple viewType using FirebaseRecyclerAdapter. I studied about RecyclerView that have multiple viewType. And I'm going to apply it in FirebaseRecyclerApdater. I want to show the data in Firebase Realtime Database. But anything shows up in-app. Here my code. public class HolderHomeAdapter extends RecyclerView.Adapter<HolderHomeAdapter.HomeSectionHolder> { private ArrayList<SectionType> sectionList; private Context context; FirebaseRecyclerOptions<ContentModel> options; public static

Firebase web: upload multiple files to Storage an then download their URLs

混江龙づ霸主 提交于 2020-06-29 04:32:13
问题 I am creating a blogging website, and am writing code that does the following in order: 1. stores multiple photos that the user uploads 2. download their URLs 3. save them to the realtime database. I wrote the function below to do #1 and #2. Basically the idea is to store all the urls to an array, in this case 'urlarray'. function url_array_get(){ return new Promise(function(resolve,reject){ let filez=review_photo.files; let urlarray=[]; let user=firebase.auth().currentUser; let files=Array

Get list user firebase angular?

岁酱吖の 提交于 2020-06-29 04:30:07
问题 This my data in firebase getStudentStage4(){ this.itemArray = [] this.itemList = this.db.list('/users') this.itemList.snapshotChanges() .subscribe(actions=>{ actions.forEach(action=>{ let y = action.payload.toJSON() y["key"] = action.key this.itemArray.push(y as Users) }) console.log(this.itemArray[0]) }) } result console get object info user . {…} ​ displayName: "Ameer Amjed" ​ email: "ameer32o@csad.com" ​ key: "Ameer Amjed" ​ rule: "student" ​ stage: "stage4" ​ <prototype>: Object { … } I

Price for simultaneous database connection in firebase

半世苍凉 提交于 2020-06-29 04:22:09
问题 document on homepage says only 200,000 per database. but what is it? how much would they charge me. hen simultaneous connection occurs 100,000? no mention for simultaneous connection on calculator. 回答1: While there are limits to the number of simultaneous connections that are allowed to each Firebase Realtime Database instance, there is no charge for this number of concurrent connections. Charges are only based on the amount of data stored, and the amount of data that is downloaded out of the

Unable to call values from FirebaseDatabase Realtime Using FirebaseUI

末鹿安然 提交于 2020-06-29 04:08:16
问题 Above is just an example of the structure of the folder in FirebaseDatabase. My query is that how am I suppose to get those child node value. Below is my code which I tried: //FirebaseDatabase Collecting all the Item List ValueEventListener listener= new ValueEventListener() { @Override public void onDataChange(@NonNull DataSnapshot dataSnapshot) { if (dataSnapshot.exists()){ for (DataSnapshot ds: dataSnapshot.getChildren()){ arrayItemList.add(ds.getKey()); } firebaseRecyclerViewItem

how to sort firebase auto generated key?

一曲冷凌霜 提交于 2020-06-29 04:06:26
问题 I am working with firebase real time database. Every time I push the data into the firebase using push method it auto generates a key like this "-L1GgaMStpwEV4N3sQad" to my best knowledge it's generated based on time also. So my question is there any way to sort the key asce or in desc?. I have attached image of firebase auto generated. Thanks in advance. 回答1: I new to firebase but here's my observation : The unique keys that are generated are already sorted in Lexicographical order. Have a