All Questions
Tagged with google-cloud-firestore java
2,330
questions
0
votes
1
answer
20
views
Firestore Write from Beam
Is it possible to write to 2 different firestore databases from the same beam Job ? One database is the 'default' and the other being a different one.
When building the beam pipeline, it is picking ...
0
votes
1
answer
27
views
Firebase OnSuccessListener times out when I try to wait for it to finish
I'm trying to load data from my Firebase Firestore database. This code uses an OnSuccessListener which runs async so I'm trying to wait till it loads data to continue. I have done this by creating a ...
0
votes
2
answers
70
views
Import firestore DocumentEventData type in Java project
I'm trying to follow this tutorial.
I want to be able to write Cloud Function event triggers in my Visual Studio code Java 17 Runtime project. In the above link, there is a snippet I'm trying to copy. ...
1
vote
0
answers
39
views
Data is not saved to database. Stream closed with status: Status{code=UNAVAILABLE, description=Channel shutdownNow invoked, cause=null}
My problem is about implementation of Firebase in android app. I have followed all steps told in the tutorials but I still cannot figure out why data is not saved to the firestore. I am aware of the ...
1
vote
2
answers
32
views
Handle huge number of index in Firestore queries
Here is my code:
Query query = firestore.collection("users")
.document(myUserID)
.collection("unseen_profiles")
.whereEqualTo("country", ...
0
votes
0
answers
29
views
What could be causing a hang up when initializing Firestore in java?
I've been trying to set up Firestore in our java application but the application keeps hanging. Here is the code:
public FirestoreDB(AppPlugin plugin) {
this.plugin = plugin;
try {
...
0
votes
1
answer
44
views
Trying to fetch all the Data of a collection but keep getting "No Setter For Fields"
I'm facing an issue with mapping data from Firestore to Java objects in my Spring Boot application. Specifically, when retrieving data from Firestore and mapping it to my Java class, most fields are ...
1
vote
2
answers
43
views
why does the wrong toast message keep appearing?
I have a class called BookRoomActivity:
public class BookRoomActivity extends AppCompatActivity {
String staffPromotionCode;
EditText etRoomName,etprice,etDate,etCapacity,etPromotion;
...
0
votes
0
answers
24
views
Android: The app doesn't upload file to firebase
I have a problem. Android application upload the audio file to firebase, but the application doesn't upload the content.
I have these codes:
UploadSong (this code the controller of the input:
public ...
0
votes
1
answer
21
views
how to set properly a setOnClickListener on my adapter Firestore Recyclerview
I need to set a setonclick listener in my adapter for my RecyclerView(firestore), my activity to be show on the click is RestaurantDetails, i need to click on the restaurant cards and be directed to a ...
1
vote
1
answer
49
views
How to map Firestore document presented in json-specific format (Firestore data model) to java class?
I obtain JSON from PubSub message. JSON represents a document from Firestore (a specific Firestore data model with additional intermediate objects that define the type of field).
I need to map this ...
0
votes
1
answer
25
views
I made a logic which collects data from firestore documents of all clients and generates different pdf for each clients but it only generates one pdf
The loop is expected to iterate for the total number of clients but exits after generating a pdf for one client:
private void generatePdf() {
firestore.collection("Users").document(...
0
votes
1
answer
25
views
How can i update my status field in firestore after several time
I am creating an app to book parking in different locations in that when Admin accepts a user parking request I have set that particular Location's slot status as true. But I want to reset that Status ...
0
votes
1
answer
32
views
in Firestore, what happens if i try to update an existing document's field when the field doesn't exist?
Let's say I have a collection in Firestore. this collection has some documents, but not all documents have the same fields. for example, one document with ID "house" might have the fields &...
0
votes
1
answer
43
views
How to identify Firebase Firestore errors and exceptions in Android
public static void getMember(String id, DataListener<Member> listener){
FirebaseAgent.getMemberDocumentReference(id).get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot&...