Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not saving when I'm online #35

Open
dantehemerson opened this issue Jan 24, 2021 · 2 comments
Open

Not saving when I'm online #35

dantehemerson opened this issue Jan 24, 2021 · 2 comments

Comments

@dantehemerson
Copy link

I'm online but it's not saving the data.
The console gives me the next message:
image

@benslv
Copy link

benslv commented Jan 27, 2021

Also experiencing the same warnings that saving will occur when back online even though I'm already online.

@gillkyle
Copy link
Owner

gillkyle commented Feb 10, 2021

Hey @dantehemerson and @silverben10, I take if you've taken steps to set this up on your own instances of Firebase/Firestore?

I have the following rules in my Firestore rules:

service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read: if request.auth != null
      		&& request.auth.uid == resource.data.userId
                && request.auth.token.email_verified;
      allow write: if request.auth != null
                && request.auth.token.email_verified;
    }
  }
}

Those kinds of errors look like the kinds of things that happen when the rules aren't set up properly.

It's probably at a url like this:

https://console.firebase.google.com/u/0/project/<project-name>/firestore/rules

This is much less secure, but could be helpful to debug by changing the rules to this:

service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write;
    }
  }
}

Does that help? Sorry for a slow response to your questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants