Vilsad P P
Vilsad P P

Reputation: 1559

how to get googleappid for firebase firestore config?

I am trying to create a flutter application which connects to firestore to store and retrieve data. from the flutter cloud_firestore plugin docs, i can see that i need some values to configure it.

final FirebaseApp app = await FirebaseApp.configure(
    name: 'test',
    options: const FirebaseOptions(
           googleAppID: '1:79601577497:ios:5f2bcc6ba8cecddd',
           gcmSenderID: '79601577497',
           apiKey: 'AIzaSyArgmRGfB5kiQT6CunAOmKRVKEsxKmy6YI-G72PVU',
           projectID: 'flutter-firestore',
        ),
    );

I know how to fetch the gcmSenderID, apiKey and projectID, but i am not able to understand how to get the googleAppID.

Please advice final Firestore firestore = new Firestore(app: app);

Upvotes: 5

Views: 4451

Answers (3)

xinthose
xinthose

Reputation: 3820

Login to firebase --> cog wheel next to Project Overview --> Project settings --> scroll down to "Your apps" (add one if missing) --> will show "SDK setup and configuration"

enter image description here

Upvotes: 0

bianca
bianca

Reputation: 7214

You can get gcmsenderId from this link

enter image description here

Upvotes: -2

Vilsad P P
Vilsad P P

Reputation: 1559

as @martin-zeitler suggested, the id is availabile in the downloaded google-services.json file. thanks for pointing it out.

Upvotes: 4

Related Questions