0

We are developing an SDK for developers which in core depends on Firebase to get tokens, therefore we are using FirebaseOptions to initialize our firebaseInstance

In the new firebase updates they said: we should provide APP_ID and API_KEY.

Is there any alternative for that as SDK developers?

If not, is there a way to get API_KEY from dashboard instead of download the googel-service.json and extract from it manually?

Ibrahim Ali
  • 1,237
  • 9
  • 20

1 Answers1

1

Both API key and App ID can be found in the Firebase console too.

The API key you need is called Web API Key and can be found in the general gettings screen in the Firebase console.

The App ID can be found when you select a specific app from that general setting screen, and is under the label App ID

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • I'm pretty sure that is the correct key though. Also see the example in the docs here: https://firebase.google.com/docs/projects/multiprojects#use_multiple_projects_in_your_application and my answer here: https://stackoverflow.com/questions/37634767/how-to-connect-to-more-than-one-firebase-database-from-an-android-app. It may help if you say what specifically doesn't work after you enter this key. Is there an error message? – Frank van Puffelen May 10 '20 at 16:46
  • Sorry Frank, I Just missed with another key (APP_ID), A lot of keys now ^^ – Ibrahim Ali May 10 '20 at 17:09
  • 1
    Yeah, as you add more apps, it becomes a bit of a key soup. In that sense I'm always impressed that the apps can find their keys in that jungle, even when I know exactly how they do that. :) – Frank van Puffelen May 10 '20 at 18:52
  • OMG, Did `20.1.6` ask for project-id too? LOL, Our client must provide 4 keys from firebase side only... I hope there is another alternative. – Ibrahim Ali May 12 '20 at 15:18