All Questions

139
votes
3answers
78653 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...
50
votes
1answers
9860 views

Speed up fetching posts for my social network app by using query instead of observing a single event repeatedly

I have an array of keys which lead to post objects for my social network like so /posts/id/(post info) When I load the posts I load /posts/0 and then /posts/1 etc using the observeSingleEventOfType(...
190
votes
18answers
130207 views

How to handle notification when app in background in Firebase

Here is my manifest <service android:name=".fcm.PshycoFirebaseMessagingServices"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT" /&g...
18
votes
1answers
4836 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
16901 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...
39
votes
9answers
15413 views

Android app not receiving Firebase Notification when app is stopped from multi-task tray

I have read a similar question on SO, however, I was not able to get the correct answer from it. I have a system wherein we send notification to around 500 devices. Unfortunately, many of these devi...
12
votes
3answers
6839 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...
147
votes
4answers
22746 views

Is it safe to expose Firebase apiKey to the public?

The firebase Web-App guide states i should put the given apiKey in my Html to initialize firebase: // TODO: Replace with your project's customized code snippet <script src="https://www.gstatic.com...
40
votes
8answers
31433 views

How to get an array with all pictures?

I'm working to upload images, everything works great, but I have 100 pictures and I would like to show them all in my view, as I get the complete list of the images in a folder, I can not find in the ...
22
votes
3answers
8455 views

Firebase android : make username unique

Parse will shut down at the end of the year, so I decided to start using Firebase. I need to implement a register process with 3 fields : email, username, password (Email & username must be unique...

Previous Next