Skip to main content
869 votes
10 answers
304k 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....
farmio's user avatar
  • 9,563
588 votes
32 answers
630k 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&...
Parth Patel's user avatar
  • 6,778
503 votes
28 answers
457k views

No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() in Flutter and Firebase

I am building a Flutter application and I have integrated Firebase, but I keep getting this error when I click on a button either to register, login, or logout. I have seen other people have asked the ...
Kennedy Owusu's user avatar
446 votes
4 answers
197k views

What's the difference between Cloud Firestore and the Firebase Realtime Database?

Google just released Cloud Firestore, their new Document Database for apps. I have been reading the documentation but I don't see a lot of differences between Firestore and Firebase DB. The main ...
Francisco Durdin Garcia's user avatar
432 votes
9 answers
400k views

Convert Promise to Observable

I am trying to wrap my head around observables. I love the way observables solve development and readability issues. As I read, benefits are immense. Observables on HTTP and collections seem to be ...
Krishnan Sriram's user avatar
374 votes
32 answers
579k views

firestore: PERMISSION_DENIED: Missing or insufficient permissions

I am getting the Error gettingdocuments.com.google.firebase.firestore.FirebaseFirestoreException: PERMISSION_DENIED: Missing or insufficient permissions. for the below code on else statement ...
SUHAS REKHU's user avatar
  • 3,813
346 votes
21 answers
74k views

API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()

Using Android Studio 3.3 Canary 11 with the gradle plugin version 3.3.0-alpha11. It throws the following error when trying to sync gradle WARNING: API 'variant.getExternalNativeBuildTasks()' is ...
Jude Fernandes's user avatar
343 votes
32 answers
301k views

Firebase onMessageReceived not called when app in background

I'm working with Firebase and testing sending notifications to my app from my server while the app is in the background. The notification is sent successfully, it even appears on the notification ...
Cyogenos's user avatar
  • 3,709
332 votes
30 answers
295k views

Cloud Firestore collection count

Is it possible to count how many items a collection has using the new Firebase database, Cloud Firestore? If so, how do I do that?
Guilherme Torres Castro's user avatar
327 votes
8 answers
692k views

How can I solve the error 'TS2532: Object is possibly 'undefined'?

I'm trying to rebuild a web app example that uses Firebase Cloud Functions and Firestore. When deploying a function I get the following error: src/index.ts:45:18 - error TS2532: Object is possibly '...
Constantin Beer's user avatar
322 votes
59 answers
333k views

Flutter and google_sign_in plugin: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)

The dialog (Google form) for the credentials is opened successfully, but after I fill my credentials I'm getting this error. I followed the instructions from here. Created a Firebase project, enabled ...
Boyan Bozhidarov's user avatar
319 votes
10 answers
109k views

How do I solve: Error: Failed to list Firebase projects. See firebase-debug.log for more info

So I'm minding my own business trying to initializing a Firebase project in my Angular app when all of the sudden I'm hit with this error: Error: Failed to list Firebase projects. See firebase-debug....
Patrick's user avatar
  • 14.1k
316 votes
9 answers
164k views

What is Firebase Firestore 'Reference' data type good for?

I'm just exploring the new Firebase Firestore and it contains a data type called reference. It is not clear to me what this does. Is it like foreign key? Can it be used to point to a collection ...
Jürgen Brandstetter's user avatar
306 votes
8 answers
269k views

Query based on multiple where clauses in Firebase

{ "movies": { "movie1": { "genre": "comedy", "name": "As good as it gets", "lead": "Jack Nicholson&...
47d_'s user avatar
  • 3,527
299 votes
6 answers
264k views

Firebase Storage How to store and Retrieve images [closed]

How to store and view images on firebase?
dogger's user avatar
  • 3,015

15 30 50 per page
1
2 3 4 5
9614