All Questions
Tagged with kotlin google-cloud-firestore
1,178
questions
0
votes
1
answer
18
views
Distinguishing Firestore Snapshot Listener 'REMOVE' Event Reasons in Query
I have a snapshot listener for a query like this:
firestore
.collection("...")
.whereEqualTo("available", true)
.orderBy("sort", Query.Direction.DESCENDING)
...
0
votes
1
answer
51
views
How to retrieve and fetch data from a document's field on firebasefirestore? [duplicate]
I am trying to fetch data from a document on a Firebase's collection that contains users:
As you can see, there is a collection named Users and two users, and now I click on one you get to see the ...
0
votes
0
answers
14
views
How come my JVM does not shutdown when using Google Cloud Firestore BulkWriter?
I'm trying to implement the BulkWriter from Google Cloud Firestore in Kotlin.
When I create documents individually (without the BulkWriter) my application works normally. However, when using the ...
0
votes
0
answers
13
views
com.google.firebase.auth.FirebaseAuthInvalidCredentialsException: The sms code has expired. Please re-send the verification code to try again
I am building a simple authentication app that authenticates the users through email/password and then through Phone. The layout is simple - User logs in with email/password in Login Activity and is ...
1
vote
1
answer
29
views
Two database Transaction with same database variable
the code looks like this..
private var db = Firebase.firestore
db.collection("Classes").document("ClassID").get(resource)
.addOnSuccessListener {
...
0
votes
1
answer
69
views
Kotlin How do I update the throughput when the application is closing? [closed]
I want to update the data in Firebase when the application terminates. How can I do that
I used onDestroy and onPause but they did not do the function I wanted. When I use OnPause, every time the ...
0
votes
0
answers
21
views
Problem in natural language api integration withf firestore
I am developing an app in kotlin , it has a part , where i have the reviews like feature where i will post review of something ,and it get stored in firestore , i have also used firebase for ...
0
votes
0
answers
33
views
Why is my UI not being updated even when the state of my List changes? [duplicate]
So I have the following Screen in my app -
fun TodoListPage(viewModel: TodoViewModel,
modifier: Modifier = Modifier,
navHost: NavHostController,
...
0
votes
2
answers
57
views
How to Create a No-Argument Constructor for a Kotlin Data Class with Date and Time Fields
I have the following data class:
data class TimesheetEntry(
val id: Int = 0,
val title: String = "",
val category: String = "",
var entryDate: LocalDate,
var ...
0
votes
1
answer
58
views
Firebase Kotlin SDK callbacks
I'm building a new Compose Multiplatform project and I want to add in some Firestore functionality.
I added the Firebase Kotlin SDK: https://github.com/GitLiveApp/firebase-kotlin-sdk
# build.gradle....
0
votes
1
answer
121
views
Parsing protobuf payload with Firestore Eventarc notifications and Google Cloud Run + Kotlin/Ktor
I have a very simple Kotlin/Ktor docker image that does this:
import com.google.events.cloud.firestore.v1.DocumentEventData
fun Application.configureRouting() {
val logger = LoggerFactory.getLogger(...
2
votes
1
answer
39
views
Why does the ScrollView detect multiple direct childs?
I'm trying to retrieve lost data from my Firebase and then implement some basic crud so that I can barely pass this paper. Here are the source codes that I'm using:
activity_admin_main.xml: this is ...
0
votes
1
answer
31
views
How do you listen for errors when uploading synchronously to Firebase storage?
I've got a list of files to upload to Firebase storage from my Kotlin Android app. I'm finding that if I upload them asynchronously, there can be so many uploading at once that my Android app ...
0
votes
1
answer
22
views
How do I set a userid field to be the same as the documentID? [duplicate]
I've been searching for hours and no luck. I'm trying to set userId to the generated document ID. I know it's redundant, but for this project, we are not allowed to use Firebase Auth so I cannot use ...
0
votes
1
answer
53
views
Make Cloud Run service and android App connect to the same Firestore db
I created a Service with Cloud Run. Using the Integrations tab of the Service, I can connect to a Firestore db instance. Unfortunately, I can't choose an existing instance, hence I have to create a ...