David Seek David Seek - 1 year ago 99
iOS Question

How to set Firebase rules / [FirebaseDatabase] Using an unspecified index

My rules are:

"rules": {
".read": true,
".write": true,
"Recent": {
".indexOn": ["userID", "chatRoomID"]

Still I'm getting:

[FirebaseDatabase] Using an unspecified index. Consider adding
".indexOn": "chatroomID" at /Recent to your security rules for better

How do I have to set it properly? I have tried the last 20 minutes, but can't get is right. Help is very appreciated.

Answer Source

Your rules say ".indexOn": ["userID", "chatRoomID"] but your error says chatroomID.

chatroomID is not the same as chatRoomID.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download