Skip to content

Firebase on Unity blocking Vuforia when building for Android #1403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ofir-b-HDEG opened this issue Jan 5, 2025 · 1 comment
Open

Firebase on Unity blocking Vuforia when building for Android #1403

ofir-b-HDEG opened this issue Jan 5, 2025 · 1 comment

Comments

@ofir-b-HDEG
Copy link

In Unity, Firebase is blocking the camera (and probably ARCore) when building for Android.

Checkout this repo:
https://gitlab.com/OfirBinoHDEG/vuforia-firebase-issue.git
In the repo there are two interesting branches vuforia-working and vuforia-not-working.
When you checkout to vuforia-working and building for Android, Vuforia should work, and you could see the camera feed when running on an Android device.
And you probably already guessed, when checking-out vuforia-not-working and building for Android, Vuforia will not work and when running you'll experience a very black screen.
If Vuforia is still working when building from vuforia-not-working, try a clean build instead of a regular build. You might be building on fumes :)
The only difference between the two branches is that on vuforia-not-working I installed Firebase App (Core) package, and on vuforia-working only External Dependency Manager for Unity is installed.
You can also download the builds from here.

Steps to reproduce:

  1. Create a Unity project. I used Unity 2022.3.43f1 with Universal 3D Core preset project.
  2. Install Vuforia from https://developer.vuforia.com. You may need to create an account in order to download. I used version 10.28.4
  3. Install External Dependency Manager for Unity. I used version 1.2.183.
  4. Install Firebase App (Core). I used version 12.5.0.
  5. Enable auto-resolution and gradleTemplate.properties in the dialogs that popup, and make sure External Dependency Manager is properly resolved.
  6. Build a clean build for Android.
  7. Install and run the build on an Android device and allow camera permissions.

Expected Results:
Vuforia should work and a live camera feed should fill the screen.

Actual Results:
Vuforia is not working, and the screen is black.

Thanks in advance 🙏

@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants