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

how to use geofire in firebase admin sdk instead of firebase javascript sdk #231

Open
mekumoshi opened this issue Aug 24, 2021 · 2 comments

Comments

@mekumoshi
Copy link

Version info

Firebase:

GeoFire:

Other (e.g. Node, browser, operating system) (if applicable):

Test case

Steps to reproduce

Expected behavior

Actual behavior

@ziyaddin
Copy link

Basically:

  1. Import firebase-admin package and your Firebase project's json file containing credentials.
  2. Create a config object firebaseConfig by initializing Firebase Admin app via admin.initializeApp() and specifying credential and databaseURL property values.
  3. Create a database object firebaseDatabase via firebaseConfig.database().

The next steps are same with Firebase SDK's steps: you initialize GeoFire object by specifying Database Reference via firebaseDatabase.ref(...).

@mekumoshi
Copy link
Author

thanks so much i just figure it out

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

No branches or pull requests

3 participants