Skip to content

Unity Firebase App works in editor but not in build #1358

Open
@Karthik002

Description

@Karthik002

[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.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    newNew issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions