2

I have a very specific set up, where we have one project that is handling our Auth, but another project where the actual Android/iOS applications are actually added to the project. When using auth for our custom backend, that's fine, but when we try to use our own provider, we get an error back with

There was an error while trying to get your package certificate hash.

Is there a way to keep the projects added on the mobile project, and still validate authentication through another firebase project?

Nic Capdevila
  • 1,495
  • 14
  • 27

2 Answers2

2

Frank's answer is correct, however in my app that was already taken care of. I've resolved the issue so will leave the question up. In my particular case, I had the SHA fingerprint added on the wrong project (the one that didn't include the Invite/Auth). Since the SHA Fingerprint is only required for Invite/Auth, and can only be set in one Firebase project, it must be set on the Firebase Project that you are using for Auth/Invite. This doesn't seem to be the case for iOS, and the documentation could be clearer for this.

Nic Capdevila
  • 1,495
  • 14
  • 27
1

You can include multiple Firebase projects in to a single app, by initializing a separate FirebaseApp instance for each project. See the documentation on configuring multiple projects and for example How to connect to more than one firebase database from an android App.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807