Tag: go

55 votes
3 answers
3K 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

avatar
Tana
0 1 0 9
asked 07 September, 2021
53 votes
8 answers
2.1K views
How to add Document with Custom ID to firestore

Is there any chance to add a document to firestore collection with custom generated id, not the id generated b

avatar
Patsy
0 1 0 9
asked 07 September, 2021
59 votes
9 answers
2.4K views
type &apos;List<dynamic>&apos; is not a subtype of type &apos;List<Widget>&apos;

I have a snippet of code which I copied from Firestore example: Widget _buildBody(BuildContext context) {

avatar
Shanita
0 1 0 9
asked 07 September, 2021
54 votes
4 answers
2.2K views
How to deploy some functions to Cloud Functions for Firebase without affecting some other functions?

When I run firebase deploy --only functions it reads the index.js file and updates all functions exported fr

avatar
Majorie
0 1 0 9
asked 07 September, 2021
60 votes
21 answers
2.8K views
Google Firestore: Query on substring of a property value (text search)

I am looking to add a simple search field, would like to use something like collectionRef.where('name&ap

avatar
Janella
0 1 0 9
asked 07 September, 2021
61 votes
13 answers
2.3K views
Google Firestore - how to get document by multiple ids in one round trip?

I am wondering if it's possible to get multiple documents by list of ids in one round trip (network call)

avatar
Boyd
0 1 0 9
asked 07 September, 2021
62 votes
30 answers
1.6K 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

avatar
Shantay
0 1 0 9
asked 07 September, 2021
61 votes
10 answers
517 views
Notification Icon with the new Firebase Cloud Messaging system

Yesterday Google presented at Google I/O the new notification system based on the new Firebase. I tried this n

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
54 votes
11 answers
2K views
Firestore query subcollections

I thought I read that you can query subcollections with the new Firebase Firestore, but I don't see any e

avatar
Forrest
0 1 0 9
asked 07 September, 2021
56 votes
4 answers
1.6K views
Firebase messaging, where to get Server Key?

Firebase allows us to send notification messages via our own application by making POST request. This tutoria

avatar
Majorie
0 1 0 9
asked 07 September, 2021
57 votes
14 answers
1.7K views
How to update an "array of objects" with Firestore?

I'm currently trying Firestore, and I'm stuck at something very simple: "updating an array (aka a su

avatar
Stacia
0 1 0 9
asked 07 September, 2021
59 votes
6 answers
1.1K views
Firebase cloud functions is very slow

We're working on an application that uses the new firebase cloud functions. What currently is happening i

avatar
Santiago
0 1 0 9
asked 07 September, 2021
50 votes
23 answers
1.3K views
Get Download URL from file uploaded with Cloud Functions for Firebase

After uploading a file in Firebase Storage with Functions for Firebase, I'd like to get the download url

avatar
Lorenzo
0 1 0 9
asked 07 September, 2021
59 votes
11 answers
2.5K views
Where can I find the API KEY for Firebase Cloud Messaging?

I am trying to figure out how the new version of GCM or Firebase Cloud Messaging works so I moved one of my pr

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
54 votes
12 answers
1.8K views
NullInjectorError: No provider for AngularFirestore

I'm learning Angular looking for help in fixing the error: I'm following this link : https://github.

avatar
Corrin
0 1 0 9
asked 07 September, 2021
55 votes
9 answers
1.7K views
How to protect firebase Cloud Function HTTP endpoint to allow only Firebase authenticated users?

With the new firebase cloud function I've decided to move some of my HTTP endpoint to firebase. Everythin

avatar
Fabian
0 1 0 9
asked 07 September, 2021
52 votes
5 answers
1.3K views
Difference between set with {merge: true} and update

In Cloud Firestore there are three write operations: 1) add 2) set 3) update In the docs it says that usi

avatar
Lorenzo
0 1 0 9
asked 07 September, 2021
63 votes
18 answers
1.1K views
How do I structure Cloud Functions for Firebase to deploy multiple functions from multiple files?

I would like to create multiple Cloud Functions for Firebase and deploy them all at the same time from one pro

avatar
Jeff
0 1 0 9
asked 07 September, 2021
52 votes
29 answers
495 views
Enabling CORS in Cloud Functions for Firebase

I'm currently learning how to use new Cloud Functions for Firebase and the problem I'm having is tha

avatar
Bryan
0 1 0 9
asked 07 September, 2021
49 votes
21 answers
1.8K views
firestore: PERMISSION_DENIED: Missing or insufficient permissions

I am getting the Error gettingdocuments.com.google.firebase.firestore.FirebaseFirestoreException: PERMI

avatar
Stacia
0 1 0 9
asked 07 September, 2021