firebase-realtime-database

How to restrict email domains in Firebase Authentication

落爺英雄遲暮 提交于 2021-01-01 06:40:20
问题 I have a question regarding firebase authentication. Actully I am making a dashboard for my company, and I will host it in firebase. I want to restrict the email authentication only to my comany domain (ex: cat.com). But I went through the stackoverflow answers and I found I can impose rule in database. But the issue is that I will be calling external databases to fetcj data using Firebase Function and serve it to website(dashboard). So no domain specific rule will apply there. Below is the

How to receive data ordered by date on firebase real-time database?

谁都会走 提交于 2020-12-27 06:12:32
问题 I have an Android app that let the user books appointments with date & time pickers, when User books an appointment, it records the appointment date & time on the firebase real-time database as a string like this (29/01/2020 - 10:30), I want to receive all the appointments that is saved on the firebase from another activity but sorted by date (newest at top) For example it should be sorted like this: 3/1/2021 9:00 9/12/2020 10:30 8/11/2020 17:00 8/11/2020 15:30 6/10/2020 10:30 6/10/2020 10:00

How to receive data ordered by date on firebase real-time database?

◇◆丶佛笑我妖孽 提交于 2020-12-27 06:10:53
问题 I have an Android app that let the user books appointments with date & time pickers, when User books an appointment, it records the appointment date & time on the firebase real-time database as a string like this (29/01/2020 - 10:30), I want to receive all the appointments that is saved on the firebase from another activity but sorted by date (newest at top) For example it should be sorted like this: 3/1/2021 9:00 9/12/2020 10:30 8/11/2020 17:00 8/11/2020 15:30 6/10/2020 10:30 6/10/2020 10:00

How to receive data ordered by date on firebase real-time database?

和自甴很熟 提交于 2020-12-27 06:09:42
问题 I have an Android app that let the user books appointments with date & time pickers, when User books an appointment, it records the appointment date & time on the firebase real-time database as a string like this (29/01/2020 - 10:30), I want to receive all the appointments that is saved on the firebase from another activity but sorted by date (newest at top) For example it should be sorted like this: 3/1/2021 9:00 9/12/2020 10:30 8/11/2020 17:00 8/11/2020 15:30 6/10/2020 10:30 6/10/2020 10:00

How can I reorder recyclerview from firebase permanently?

前提是你 提交于 2020-12-27 05:45:45
问题 I am working on a firebase project. I used Itemtouchhelper to drag and reorder the recyclerview from firebase database but it resets to what it was if I enter another activity and comeback or restart the app. Is there a way to make the change to recyclerview order permanent? ItemTouchHelper.SimpleCallback simpleCallback = new ItemTouchHelper.SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN | ItemTouchHelper.START | ItemTouchHelper.END, 0) { @Override public boolean onMove(@NonNull

How can I reorder recyclerview from firebase permanently?

我的未来我决定 提交于 2020-12-27 05:35:41
问题 I am working on a firebase project. I used Itemtouchhelper to drag and reorder the recyclerview from firebase database but it resets to what it was if I enter another activity and comeback or restart the app. Is there a way to make the change to recyclerview order permanent? ItemTouchHelper.SimpleCallback simpleCallback = new ItemTouchHelper.SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN | ItemTouchHelper.START | ItemTouchHelper.END, 0) { @Override public boolean onMove(@NonNull

How can I reorder recyclerview from firebase permanently?

喜你入骨 提交于 2020-12-27 05:35:33
问题 I am working on a firebase project. I used Itemtouchhelper to drag and reorder the recyclerview from firebase database but it resets to what it was if I enter another activity and comeback or restart the app. Is there a way to make the change to recyclerview order permanent? ItemTouchHelper.SimpleCallback simpleCallback = new ItemTouchHelper.SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN | ItemTouchHelper.START | ItemTouchHelper.END, 0) { @Override public boolean onMove(@NonNull

How can I reorder recyclerview from firebase permanently?

折月煮酒 提交于 2020-12-27 05:34:38
问题 I am working on a firebase project. I used Itemtouchhelper to drag and reorder the recyclerview from firebase database but it resets to what it was if I enter another activity and comeback or restart the app. Is there a way to make the change to recyclerview order permanent? ItemTouchHelper.SimpleCallback simpleCallback = new ItemTouchHelper.SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN | ItemTouchHelper.START | ItemTouchHelper.END, 0) { @Override public boolean onMove(@NonNull

How can I reorder recyclerview from firebase permanently?

狂风中的少年 提交于 2020-12-27 05:33:22
问题 I am working on a firebase project. I used Itemtouchhelper to drag and reorder the recyclerview from firebase database but it resets to what it was if I enter another activity and comeback or restart the app. Is there a way to make the change to recyclerview order permanent? ItemTouchHelper.SimpleCallback simpleCallback = new ItemTouchHelper.SimpleCallback(ItemTouchHelper.UP | ItemTouchHelper.DOWN | ItemTouchHelper.START | ItemTouchHelper.END, 0) { @Override public boolean onMove(@NonNull

Firebase Database doesnt write

拥有回忆 提交于 2020-12-27 05:31:31
问题 I am trying to create "id, uid, and picname" branches in my realtime database but nothing does show. The rules are true for all. Also nothing shows up in logcat. It's been bothering me a lot. DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference().child("Logbook").push(); //Data will be saved in "Logbook" node. Map<String, Object> updateMap = new HashMap<>(); updateMap.put("id", ""); updateMap.put("Uid", ""); updateMap.put("picName", ""); databaseReference.setValue