All Questions

139
votes
3answers
78396 views

Query based on multiple where clauses in Firebase

{ "movies": { "movie1": { "genre": "comedy", "name": "As good as it gets", "lead": "Jack Nicholson" }, "movie2": { "genre": "Horror", "name": "The S...
18
votes
1answers
4791 views

Firebase query if child of child contains a value

The structure of the table is: chats --> randomId -->--> participants -->-->--> 0: 'name1' -->-->--> 1: 'name2' -->--> chatItems etc What I am trying to do is query the chats table to find all th...
45
votes
3answers
16865 views

Restricting child/field access with security rules

I'm writing an app that allows users to submit nominations which are moderated before being displayed to other users. This requires a number of restrictions I've so far been unsuccessful in implementi...
12
votes
3answers
6814 views

Setting Singleton property value in Firebase Listener

I'm currently testing out Firebase along with a Singleton model I plan to use to access during the lifecycle of the whole app. I'm now stuck with something that seems really trivial but I can't figure...
22
votes
2answers
2772 views

How to write denormalized data in Firebase

I've read the Firebase docs on Stucturing Data. Data storage is cheap, but the user's time is not. We should optimize for get operations, and write in multiple places. So then I might store a list ...
23
votes
2answers
9341 views

How do you prevent duplicate user properties in Firebase?

I'm Using FirebaseSimpleLogin to create users and handle authentication. When I try and create a new user with simple login via the $createUser() method, firebase won't create the user if the email a...
43
votes
3answers
8423 views

Firebase Offline Capabilities and addListenerForSingleValueEvent

Whenever I use addListenerForSingleValueEvent with setPersistenceEnabled(true), I only manage to get a local offline copy of DataSnapshot and NOT the updated DataSnapshot from the server. However, if...
63
votes
14answers
67747 views

Getting Exception java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions after updating to the new firebase

I have updated my application to the new firebase using the this and now when i compile my project i get the following exception. Here is my logcat: 11:57:54.533 27844-27844/com.example.dayshift_2.t...
14
votes
1answers
12967 views

Firebase Query Double Nested

Given the data structure below in firebase, i want to run a query to retrieve the blog 'efg'. I don't know the user id at this point. {Users : "1234567": { name: 'Bob', blog...
207
votes
6answers
114735 views

How to store and view images on firebase?

How to store and view images on firebase?

Previous Next