40,136 questions
0
votes
0
answers
23
views
ESP32: Token error -127: Missing required credentials, e.g., database URL, host and tokens in Firebase RTDB
I am getting this error in Arduino IDE. I am using ESP32 and firebase as the real-time database. I have ensured that I have got the actual api key and URL from my project in firebase. I also have used ...
1
vote
1
answer
104
views
Data not passing between viewModel and View
Long story short, I'm trying to pass information from Realtime Database, into a viewModel function/variable, then call that variable in a specific view.
Here is the viewModel.
import FirebaseAuth
...
-1
votes
1
answer
46
views
RecyclerView not showing in design mode or in the emulator in android studio [closed]
I'm trying to figure out on what to do as my recyclerview seems to be not working. I'm still fairly new to mobile development so I'm not exactly sure I'm gonna do. There was no error/warning messages ...
1
vote
1
answer
33
views
Firebase Storage security rules: get() to Realtime Database dont work
I’m trying to create a Firebase Storage rule that only allows access to files under /approved/ if the user has a permission: true field in the Realtime Database, located at this path:
/Users/{uid}/...
0
votes
0
answers
20
views
Firebase database emulator opens new terminal instead of writing logs to file
Whenever I run firebase emulators:start it starts my emulators. The problem is that the Realtime Database emulator doesn't log the logs to the file database-debug.log. Instead it spawns a new terminal ...
0
votes
0
answers
79
views
I'm having trouble pulling data from Firebase with Jetpack Compose?
private lateinit var viewmodelAuthentication: ViewModel_Authentication
class Activity_Login : ComponentActivity() {
@SuppressLint("CoroutineCreationDuringComposition")
override fun ...
0
votes
0
answers
32
views
FIREBASE FATAL ERROR: Database initialized multiple times. Please make sure the format of the database URL matches with each database() call
I've written this js code for a firebase cloud function for a realtime database:
const { onValueUpdated } = require("firebase-functions/v2/database");
const admin = require("firebase-...
0
votes
0
answers
32
views
Randomly empty "userRegistrationDate" when Loading PlayerStats from Firebase Realtime Database
I'm experiencing a puzzling issue with loading player statistics in my Unity application using Firebase Realtime Database. The problem is that the JSON snapshot sometimes contains an empty string for ...
0
votes
0
answers
33
views
Deploy Firebase Realtime Database rules for specific region
I have multiple regions for my Firebase Realtime Database and would like to update the rules of all or specific regions. But when ever I use firebase deploy --only database it only updates the rules ...
0
votes
0
answers
37
views
Firebase realtime database, Is there a way to prevent adding children to a node when it has reached its child node limit? [duplicate]
Is there a way around this, but what I know so far is that the database rules do not support numChildren() to read the number of child nodes.
Some other suggestions are to use a custom counter that ...
2
votes
1
answer
117
views
Firebase Error saving rules - Line 14: String can't contain ".", "#", "$", "/", "[", or "]"
I hava a firebase realtime database in an app with the following format:
{
"level_1": {
"entry_01_06_2024_09_47_20_xw": {
"co2_score": -276,
"date&...
0
votes
1
answer
24
views
How to Restrict Firebase Realtime Database Access to Specific Query Parameters?
I have a domain whitelist system to verify whether a site's domain is included in my whitelist. If a domain is on the list, it means the theme is verified and purchased. Otherwise, the code should not ...
1
vote
0
answers
29
views
PERMISSION_DENIED: Missing or insufficient permissions - Firebase function
I have a Firebase function called onUserStatusChanged that mirrors real-time data from the Firebase Realtime Database to Firestore like following :
(By the way, I copied this code from Google)
const ...
0
votes
0
answers
44
views
Firebase v2 Database Triggers not able access parent data from within trigger
It seems as if my promise to get parent data from within my Realtime Database trigger doesn't resolve.
Realtime Database Structure:
{
matches: {
{matchId}: {
startAt: number,
endAt: ...
0
votes
1
answer
49
views
Firebase realtimedatabase sort to time
I'm writing in the realtime database using the push() function
The push() function orders the input data in chronological order, but it does not, and it orders the data in numerical order
I want the ...