Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No databaseURL in the SDK snippet #23

Open
Prathamkrishna opened this issue Apr 21, 2021 · 2 comments
Open

No databaseURL in the SDK snippet #23

Prathamkrishna opened this issue Apr 21, 2021 · 2 comments

Comments

@Prathamkrishna
Copy link

I was watching the video and working along. But my firebase app does not have the 'databaseURL' in the SDK snippet but it has an extra 'measurementID'.

@bharathmsd7
Copy link

I think you have to re-generate the SDK config by deleting the existing app and creating a new web app.

This will works because you have generated the SDK config before enabling Firestore.

@anweshandev
Copy link

By default, when you add the app it will not provide a databaseUrl which ends with firebaseio.com.

The issue #4221 created here responds to this very stuff.

If you want to follow the video verbatim, you need to go to the Dashboard and click Realtime Database and enable it. This will provide you with a databaseUrl.

Now, the app really does not make any use of the Realtime Database as Cloud Firestore is just capable enough to handle the stuff.. You can modify the config to remove the key databaseUrl:

const config = {
  apiKey: "*********",
  authDomain: "********",
  projectId: "*********",
  storageBucket: "********",
  messagingSenderId: "*******",
  appId: "*********",
  measurementId: "G-********"
};

Now coming to measurementId, yeah Google now lets developers to collect analytics (optional) by integrating it with Google Analytics.
This is an optional but very powerful feature, and to have more insight watch the Video on Youtube made by Fireship.

Hope it helps..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants