File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,28 @@ Building and Running the testapp
151
151
- Register your app with Firebase.
152
152
- Create a new app on the [Firebase console](https://firebase.google.com/console/),
153
153
following the above instructions for Android or iOS.
154
+ - The Desktop version of the library requires you to set up any keys you
155
+ use via Query::OrderByChild() in advance. Add this to your database's
156
+ rules in the _Rules_ tab of your database settings in Firebase console:
157
+ ```
158
+ {
159
+ "rules": {
160
+ // Require authentication for writing to the database.
161
+ ".read": "true",
162
+ ".write": "auth != null",
163
+ // Set up entity_list to be indexed by the entity_type child.
164
+ "test_app_data": {
165
+ "$dummy": {
166
+ "ChildListener": {
167
+ "entity_list": {
168
+ ".indexOn": "entity_type"
169
+ }
170
+ }
171
+ }
172
+ }
173
+ }
174
+ }
175
+ ```
154
176
- If you have an Android project, add the `google-services.json` file that
155
177
you downloaded from the Firebase console to the root directory of the
156
178
testapp.
You can’t perform that action at this time.
0 commit comments