question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Firebase SDK on devices without Google Play Services

See original GitHub issue

I’m using unity 2018.3.0b2 and the firebase sdk 5.3.1 to build on my Oculus Go.

At startup I get this in my debug: Firebase App initializing app com.eyeflite.wingvr

That’s the last I see from my firebase debug output (no auth initiated or sign in attempt made). Then, I’m prompted with a system dialog that " {my app} won’t run without play services which weren’t supported by your device"

I hadn’t seen this system prompt on 5.3.0 and the auth system was working fine. Any ideas about what’s going on?

This is in my Awake() function:

  Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task => {
	var dependencyStatus = task.Result;
		if (dependencyStatus == Firebase.DependencyStatus.Available) {
			// Create and hold a reference to your FirebaseApp, i.e.
			app = Firebase.FirebaseApp.DefaultInstance;
			auth = Firebase.Auth.FirebaseAuth.DefaultInstance;
			Debug.Log("auth inited!");
			SignInAndGetToken();

	} else {
		UnityEngine.Debug.LogError(System.String.Format(
			"Could not resolve all Firebase dependencies: {0}", dependencyStatus));
		// Firebase Unity SDK is not safe to use here.
	}
		});

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:49 (11 by maintainers)

github_iconTop GitHub Comments

6reactions
yezzerfvcommented, Aug 6, 2019

Are there plans to get Firebase working on devices without Google Play Services? While it may be possible to use the REST API with quite a lot of additional effort, the lack of built-in support means Oculus Go, Oculus Quest, and other HMDs running a flavour of Android (eg: HTC Focus?) means Firebase is a bad choice for developers. A shame, because it’s my preferred solution on all the other platforms!

We’re going to see more VR (and AR?) HMDs using Android be released, and to put up barriers for using Firebase on this emerging market seems a strange decision.

4reactions
pahayahcommented, Nov 19, 2019

So when can we expact the decoupling of Google Play for Unity so that Oculus Quest could work? We want to use mainly Auth and Realtime Database.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use Firebase Auth on Devices without Google Play Services
Some Firebase Android SDKs depend on Google Play services, which means they will only run on devices and emulators with Google Play services...
Read more >
Dependencies of Firebase Android SDKs on Google Play ...
Some Firebase Android SDKs depend on Google Play services, which means they will only run on devices and emulators with Google Play services...
Read more >
How to use Firebase API on Android without the Google ...
The Firebase SDK for Android is based on Google Play Services. You can't avoid or skip the dependencies. If you want to use...
Read more >
What is Google Firebase? Can you use it without ...
Yes, you can use Firebase without Google Play Services. Firebase is a standalone service that can be integrated with any platform, including iOS,...
Read more >
[FCM] Supporting Non-Google Play devices
Does FCM have support for Non-Google Play devices? ... Apps that rely on the Play Services SDK should always check the device for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found