Support Firebase SDK on devices without Google Play Services
See original GitHub issueI’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:
- Created 5 years ago
- Comments:49 (11 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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.