firebase / firebase-cpp-sdk

Firebase C++ SDK
http://firebase.google.com
Apache License 2.0
276 stars 115 forks source link

initializing a firebase::App object with a path to the google-services.json file? #57

Open slackjaw opened 4 years ago

slackjaw commented 4 years ago

Please fill in the following fields:

Pre-built SDK from the website or open-source from this repo: pre-built Firebase C++ SDK version: 6.14.0 Firebase plugins in use (Auth, Database, etc.): firestore Additional SDKs you are using (Facebook, AdMob, etc.): none Platform you are using the C++ SDK on (Mac, Windows, or Linux): linux Platform you are targeting (iOS, Android, and/or desktop): desktop

Please describe the issue here:

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

Is there a option for initializing a firebase::App object with a path the the google-services.json file? It looks like all the code is available in the SDK, but hidden in an anonymous namespace. This is being used in a standard linux desktop environment with no build tools besides cmake.

Please answer the following, if applicable:

Have you been able to reproduce this issue with just the Firebase C++ quickstarts ? N/A

What's the issue repro rate? (eg 100%, 1/5 etc) N/A

morganchen12 commented 4 years ago

This is currently unsupported in the C++ SDK, but is a relatively popular feature request for the Android and iOS SDKs.