Firebase on Unity blocking Vuforia when building for Android
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- android, csharp, firebase, unity
- Domain
- build-system, game-dev, mobile-dev
Research direction
Start with the linked reproduction repository and compare the vuforia-working and vuforia-not-working branches, noting the Firebase App (Core) and External Dependency Manager versions. Run a clean Android build with Unity 2022.3.43f1, install it on a device, and verify that adding Firebase no longer prevents Vuforia's live camera feed from appearing.
Written by the indexing model from the issue text.
Description
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:
- Create a Unity project. I used Unity 2022.3.43f1 with Universal 3D Core preset project.
- Install Vuforia from https://developer.vuforia.com. You may need to create an account in order to download. I used version 10.28.4
- Install External Dependency Manager for Unity. I used version 1.2.183.
- Install Firebase App (Core). I used version 12.5.0.
- Enable
auto-resolutionandgradleTemplate.propertiesin the dialogs that popup, and make sureExternal Dependency Manageris properly resolved. - Build a clean build for Android.
- 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 🙏
- Dominant language
- C#
- Stars
- 923
- Forks
- 456
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/quickstart-unity
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
firebase/quickstart-unity#1448 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
firebase/quickstart-unity#1432 · 1 comment ·
-
new
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
firebase/quickstart-unity#1411 · 1 comment ·
-
Firebase or specific Android versions trigger app_clear_data on first_open, disrupting our funnel Opennew
Difficulty 4/5 3-5 days Newbie friendliness 25/100
firebase/quickstart-unity#1390 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
firebase/quickstart-unity#1386 · 2 comments ·
All issues in firebase/quickstart-unity
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·