firebase / firebase/quickstart-unity
Unity Firebase App works in editor but not in build
- Dominant language
- C#
- Stars
- 923
- Forks
- 456
- PR merge metrics
- No merged PRs in 30d
Description
### [REQUIRED] Please fill in the following fields:
* Unity editor version: 2022.3.1
* Firebase Unity SDK version: 11.6.0
* Source you installed the SDK: .unitypackage (.unitypackage or Unity Package Manager)
* Problematic Firebase Component: Auth (Auth, Database, etc.)
* Other Firebase Components in use: Database(Auth, Database, etc.)
* Additional SDKs you are using: _____ (Facebook, AdMob, etc.)
* Platform you are using the Unity editor on: Windows (Mac, Windows, or Linux)
* Platform you are targeting: Android (iOS, Android, and/or desktop)
* Scripting Runtime: IL2CPP (Mono, and/or IL2CPP)
### [REQUIRED] Please describe the issue here:
I am making a VR application (android apk build) using Unity with OpenXR, and have it connected to Firebase Authentication and Realtime Database. It was initially working fine on both editor and on build on a Meta Quest 2, but we had to change our database. After changing the database, I replaced the google-services.json with the new one in the same location. In the editor, I can connect to Firebase fine but when I build and try in VR, I am unable to connect.
I've tried re-adding the google-services.json and removing and re-installing the Firebase Unity SDK's manually. I even saw on another post that you can create the app options manually as a last resort and tried that using the following code, but it still doesn't work.

Contributor guide
Assessment
This issue has not been assessed yet.