I have a clicker game and I am making a way to switch between a local and online save, i am using Firebase cloud Firestore database, I am having a problem with “get a field of a document”
it is not writing data to a variable,
here are my current rules to show that I don’t think it is a problem with my rules (these rules should allow anything to happen, I have tried multiple methods, and everything works but not setting the variable, the variable that tells me the status says “ok”)
current rules (v2)
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /game/{document=**} {
allow read, write: if request.time > timestamp.date(2023, 1, 1);
allow create: if request.time > timestamp.date(2023, 1, 1);
allow update, delete: if request.time > timestamp.date(2023, 1, 1);
allow write: if request.time > timestamp.date(2023, 1, 1);
}
}
}
old rules (v1)
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow create, update, delete, read, write: if
request.time > timestamp.date(2023, 1, 1);
}
}
}
if this is not wrong and I’m just an idiot and its not configured properly let me know and ill try that. (the rules should be allowing ANY reading or writing to happen)
here is also the database and configuration of the Get a field of a document block
i changed the fields name to “RedactedEmail” for privacy but it is the one that is used to login