firebase-realtime-database

Firebase database - run on different thread

我怕爱的太早我们不能终老 提交于 2020-05-07 05:57:13
问题 I want to run the events of firebase on different thread. On the last version of firebase I had this code that did it Config firebaseConfig = new Config(); firebaseConfig.setEventTarget(new EventTarget() { ExecutorService executor = Executors.newSingleThreadExecutor(); @Override public void postEvent(Runnable runnable) { executor.execute(runnable); } @Override public void shutdown() { executor.shutdown(); } @Override public void restart() { } }); Firebase.setDefaultConfig(firebaseConfig); How

Generate parent UID for registration with google auth android studio firebase [closed]

一曲冷凌霜 提交于 2020-05-05 19:17:05
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last month . I need help how can I use user model. when creating the account instead of generating the parent node with email. make the main node the uid. I tried some modifications but I was not successful someone could help me. the account is created by google auth wanted that instead of email it would

Removing a dictionary element in Firebase

久未见 提交于 2020-04-30 07:28:26
问题 I am trying to remove a dictionary element in firebase I want to remove the object :- D8QmnOSH6vRYiMujKNXngzhdn992: "True" at PendingFriendRequests/RhiZYyMF7STn1vyA27HjnJRsLYb2 so far i have come up with this :- FIRControllerClass.ref.child("PendingFriendRequests").child(FIRAuth.auth()!.currentUser!.uid).observeSingleEventOfType(.Value, withBlock: {(Snapshot) in let dict = Snapshot.value! as! NSMutableDictionary for each in dict { print(each) print(acceptedFriend) if each.key as! String ==

How to Subtract two different node child values in Firebase Realtime Databse?

我的未来我决定 提交于 2020-04-30 07:19:22
问题 I'm creating a Food ordering app.for that I'm saving the food names into the Food unique ID. So I created Item Details as a node, in this node has shopuniqueID as a child node, in this node has food uniqueID this ID contains food details such as discount,itemname,price,discount If the User book the foods, which will be saved as below format , If the customer confirms the food order after that user-selected quantity wants to delete from total item quantity, How can I delete two different

Read data from firebase in vuex

China☆狼群 提交于 2020-04-30 06:33:46
问题 i am new in Vue Js. I am doing an TODO web application. I took firebase as a backend and database. I am using Vuex for the state management. Until now i am able to add data to firebase, but when come time to read, i am stuck. i couldn't read data from firebase. It's show an empty array in component from where i am calling. This is my store.js import Vue from 'vue'; import Vuex from 'vuex'; import firebase from "firebase"; Vue.use(Vuex); export const store = new Vuex.Store({ state:{ events:[],

View PostIME 0,1 error while retrieving data from firebase

这一生的挚爱 提交于 2020-04-30 06:27:22
问题 Here I am trying to display the data for the current logged in user. If there is any other method to retrieve data pls share. This is my database : This is the code I have used for saving data : @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getSupportActionBar().hide(); setContentView(R.layout.activity_signup); mfirebase = FirebaseAuth.getInstance(); msuser=(EditText)findViewById(R.id.signup_username); mspass=(EditText)findViewById(R.id

View PostIME 0,1 error while retrieving data from firebase

为君一笑 提交于 2020-04-30 06:25:28
问题 Here I am trying to display the data for the current logged in user. If there is any other method to retrieve data pls share. This is my database : This is the code I have used for saving data : @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getSupportActionBar().hide(); setContentView(R.layout.activity_signup); mfirebase = FirebaseAuth.getInstance(); msuser=(EditText)findViewById(R.id.signup_username); mspass=(EditText)findViewById(R.id

how to check when a user has phone authenticated in Firebase?

别说谁变了你拦得住时间么 提交于 2020-04-30 04:23:47
问题 I have an Android app where users are registered in the app with their phone number, I am using Firebase to store in Authentication their phone and their email and also I am saving in the Realtime Database their phone, their full name, and their email. The structure in the Realtime Database is as follows: Auto-Generated ID +16505553434: "some@email.com" email:"some@email.com" first name: "First name" last name: "Last name" phone: "+16505553434" After the user has registered and signed out

Flutter: Firebase Real-Time database orderByChild has no impact on query result

半世苍凉 提交于 2020-04-29 03:51:03
问题 I have inserted data like this into Firebase Real-Time Database like this way: And I query the database back like this way: final databaseReference = FirebaseDatabase.instance.reference(); databaseReference .child('orders') .orderByChild('date_slug') .limitToFirst(pageSize) .once() .then((snapshot) { firstPageItems = snapshot.value; if (firstPageItems != null) { List<dynamic> curretList = []; firstPageItems.forEach((orderId, orderData) { print ("date_slug " + orderData['date_slug'] + "\r\n\r

Flutter: Firebase Real-Time database orderByChild has no impact on query result

那年仲夏 提交于 2020-04-29 03:49:30
问题 I have inserted data like this into Firebase Real-Time Database like this way: And I query the database back like this way: final databaseReference = FirebaseDatabase.instance.reference(); databaseReference .child('orders') .orderByChild('date_slug') .limitToFirst(pageSize) .once() .then((snapshot) { firstPageItems = snapshot.value; if (firstPageItems != null) { List<dynamic> curretList = []; firstPageItems.forEach((orderId, orderData) { print ("date_slug " + orderData['date_slug'] + "\r\n\r