Skip to main content

All 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 ...
Safiyulla Mona's user avatar
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) { ...
Relm's user avatar
  • 8,295
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; @...
EulerVen's user avatar
  • 1,113
-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 ...
androidXP's user avatar
  • 1,719
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 ...
Zofiant's user avatar
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....
Jack Wilson's user avatar
  • 6,265
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 ...
Learn2Code's user avatar
  • 2,290
-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 ...
Alma N's user avatar
  • 19
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(...
NickUnuchek's user avatar
  • 12.9k
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 ...
Victor Davis Lenz's user avatar
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....
Mustafa Mohamed Ahmed's user avatar
-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 : ...
Simon Huckett's user avatar
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. ...
galuh bagas's user avatar
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" ...
Francesco's user avatar
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 ...
Ilya S's user avatar
  • 771

15 30 50 per page
1
2 3 4 5
311