firebase-realtime-database

How to delete multiple child nodes from different parents nodes where a particular value exists [closed]

隐身守侯 提交于 2021-02-17 07:06:24
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 days ago . Improve this question Hello guys I'm developing an app and using firebase realtime as my database. I have a node called Users which stores patients and doctors. I also have a different node called Mypatient which stores patient and doctors details whom they're enrolled to. what I want to achieve is if

Referencing Firebase realtime database data through firestore security rules

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-17 06:14:06
问题 I would like to use data in the realtime database to allow user access in the firestore database. Is it possible to reference nodes in the realtime database from the firestore security rules? 回答1: It is currently not possible to cross between database products like this in security rules. Please feel free to file a feature request for this. You can, however, write code to run on Cloud Functions that deals with database changes after the change has happened, and undo or restrict the change

Uncaught Error: Call to undefined method Kreait

让人想犯罪 __ 提交于 2021-02-17 06:11:50
问题 I just created php web server and connected it to firebase. when I tried authentication, Sign up works just fine. but the problem is in Sign in. it keeps getting this error: Fatal error: Uncaught Error: Call to undefined method Kreait\Firebase\Auth::signInWithEmailAndPassword() in /Applications/XAMPP/xamppfiles/htdocs/firebase_series/authActions.php:24 Stack trace: #0 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/firebase_series/authActions.php on line 24 here my authentication code:

How to set up profile image from firebase database

邮差的信 提交于 2021-02-17 06:10:11
问题 Hey I am new to Xcode and need of assistance in uploading my profile image from firebase database to my user profile. I have receive no errors so far but the image is not appearing when my user logs in, the image is already stored in firebase but when I attach the UIImageView to the user profile the image shows up blank do anyone have a solution to fix this code to make my image appear on the user profile once they log in it should be automatic? typealias blockCompletedWith = (Bool, String) -

Changes made to RecyclerView does not save

我的未来我决定 提交于 2021-02-17 06:00:33
问题 I used firebase database to load information into the recyclerview. By using itemtouchhelper, I was able to relocate the items in the recyclerview. However, the changes made to the recyclerview doesn't save and always goes back to its original state when I end the activity. How can I fix my code to make the changes last permanently? ItemTouchHelper.SimpleCallback simpleCallback = new ItemTouchHelper.SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN | ItemTouchHelper.START |

How to retrieve data from Firebase into a ListView (with custom Array Adapter)

做~自己de王妃 提交于 2021-02-17 05:45:17
问题 I have currently designed a place explorer app with 3 items displayed in a list view. When a user logs in he will find a list of categories. On clicking a category the list of places under that category will appear. I have linked the app with Firebase. Now, I want to display 2 items ( placeTitle and placeDesc ) from the data stored in the firebase into the list view. I am unable to load the data into the ListView . Shopping Activity: public class ShoppingActivity extends AppCompatActivity {

Need a way to extract specific data from Firebase RealtimeDB to Google Sheets

扶醉桌前 提交于 2021-02-17 03:31:32
问题 I'm trying to transfer Firebase RealtimeDB data into Google Sheets using AppScript. I need a way to extract ID, Department, and Surname strings from the DB while it is received as such from the Logs below. I use .childByAutoID() which has the following effect on the DB. My database: Desired result in spreadsheet: function writeSheets() { var firebaseUrl = "<my-database>.firebaseio.com/Attendees"; var base = FirebaseApp.getDatabaseByUrl(firebaseUrl); var data = base.getData(); console.log(JSON

How to display the exact number of items from a Firebase Database in a ListView using FirebaseListAdapter with Android?

不羁岁月 提交于 2021-02-16 18:27:06
问题 I have a very simple Firebase Database which looks like this: This is my model: public class ShoppingListModel { private String shoppingListName; private Map<String, String> usersMap; public ShoppingListModel() {} public void setShoppingListName(String shoppingListName) {this.shoppingListName = shoppingListName;} public String getShoppingListName() {return shoppingListName;} public void setUsersMap(Map<String, String> usersMap) {this.usersMap = usersMap;} public Map<String, String>

Firebase Database setValue: or removeValue failed: permission_denied iOS

a 夏天 提交于 2021-02-16 16:16:11
问题 I'm trying to write data to Firebase Database but I keep receiving the following error when my saved button is pressed. 2016-12-02 11:09:42.548 StartupNow[1482:60415] [FirebaseDatabase] setValue: or removeValue: at /test/-KY-VpLZWbp4vjF3BpMk failed: permission_denied Things I've tried: I've made sure my .read and .write rules were set to true in my console, reconnected my savedButtonPressed button, and wrote the Firebase reference in a function and called it in my savedButtonPressed() method.

How to retrieve data from firebase where the value of a date is 1 month ago from current date

前提是你 提交于 2021-02-16 14:28:07
问题 SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy HH:mm"); Calendar c = Calendar.getInstance(); String date = sdf.format(c.getTime()); i used this code to get the current time. but i want to get all data from firebase 1 month ago. what i must add the code? i used this code to retrieve all without compare anything mDatabasetamu.orderByChild("tglkeluar").equalTo(date).addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(@NonNull DataSnapshot