All Questions
4,656 questions
0
votes
1
answer
90
views
firebase database user submitted posts retrieve to android recycler view in date wise
This is my HomeView Fragment Activity
public class HomeView extends Fragment {
private View view;
private RecyclerView recentPosts;
private DatabaseReference donor_ref;
FirebaseAuth mAuth;
private ...
106
votes
20
answers
109k
views
How to check if a Firebase App is already initialized on Android
With the following, the first time it's called it works, but then fails on subsequent calls with "FirebaseApp name [DEFAULT] already exists!"
public FirebaseDatabase conn(Context c) {
...
101
votes
12
answers
59k
views
Firebase No properties to serialize found on class
I'm bloqued creating a Firebase Database.
I'm trying to model a class. A very simple class:
package com.glups.model;
import com.google.firebase.database.IgnoreExtraProperties;
@...
-1
votes
1
answer
158
views
Android - Firebase realtime database not updating when app in background
I am trying to update firebase realtime database from FirebaseMessagingService but it never update when updating from FirebaseMessagingService.
So logic is when User A send Message to User B (app in ...
0
votes
0
answers
36
views
How do I make a check to make sure a recipe is only saved once? [duplicate]
So i have an Activity thats saves a recipe and sends data to firebase. How to make a check that the recipe is not saved only once regardless of how many times the user clicked on the button?
Below is ...
159
votes
8
answers
106k
views
Compilation failed to complete:Program type already present: com.google.android.gms.internal.measurement.zzabn
When compiling my project I get the following error message:
Program type already present: com.google.android.gms.internal.measurement.zzabn Message{kind=ERROR, text=Program type already present: com....
0
votes
1
answer
49
views
Issue with Firebase Realtime database Race condition with Android Java
I want to start off that this issue in NOT impacting my iOS app and strictly in Android using java.
Below is my code:
The first function calls Firebase to get the users in the pool:
private void ...
-1
votes
1
answer
64
views
chipgroup - firebase database - java
I have a cuisine category in my Firebase Realtime Database for every restaurant.
restaurant 1 cuisine : Italian . restaurant2 cuisine :fast food
how can I get all cuisine from Firebase Realtime ...
101
votes
3
answers
126k
views
Where can I get "serviceAccountCredentials.json" for Firebase Admin?
Here is said what I need to set up Firebase on java:
FirebaseOptions options = new FirebaseOptions.Builder()
.setDatabaseUrl("https://databaseName.firebaseio.com")
.setServiceAccount(...
60
votes
11
answers
78k
views
Setting custom key when pushing new data to firebase database
Well, I am new to Firebase and I want to have my own keys while pushing new data to database.
Problem:
FireBase.push().setValue(mapped_values);
This gives structure like below:
How can I create my ...
0
votes
1
answer
78
views
Can't convert object of type java.lang.String to type Orders_Class. How can i fix it?
How can I retrieve data from products in my orders child Firebase Realtime Database:
This is my Orders_class
this class contains only orderId and Order full pay
package com.example.safetysouq....
-1
votes
1
answer
51
views
Limit Firebase Query for a single child node
The title might imply this is nonsensical, but I'm trying to limit the amount of data retrieved from Firebase. I have a query structured like this:
for (final Map.Entry<String, String> entry : ...
0
votes
2
answers
463
views
Realtime Database (Firebase) doesn't seem connect with my app
I already write a simple code to write in the Realtime Database (Firebase) like the Documentation do. here's the code
this code supposed add a "Hello, World".
But my database stays null.
...
0
votes
2
answers
84
views
How can I use keep-alive messages to detect a disconnected user from game app?
I'm developing a game app using Android Studio with java, and I'm using Firebase Realtime Database to handle connection and sending messages between users.
In this app multiple "guests" ...
61
votes
6
answers
47k
views
How to return DataSnapshot value as a result of a method?
I don't have much experience with Java. I'm not sure if this question is stupid, but I need to get a user name from Firebase realtime database and return this name as a result of this method. So, I ...