Firebase Database Rules

Home Forums WPLMS Live WPLMS Push Notifications Firebase Database Rules

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #187359
    Videoblam
    Participant
    I'm unable to add the rules to the Firebase database as it comes up with an error:
    mismatched input '{' expecting {'function', 'service', 'rules_version'}
    This is what I tried to add:
    { "rules": { ".read": "auth != null", ".write":"auth != null", "notifications":{ ".indexOn":["status"] }, "users":{ "$uid":{ "chats":{ ".indexOn":["lastUpdated"] } } } } }
    #187395
    Videoblam
    Participant
    I worked this out. I had to change the database type from Cloud Firestore to Realtime Database.
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Firebase Database Rules’ is closed to new replies.