-
Notifications
You must be signed in to change notification settings - Fork 444
Description
Please fill in the following fields:
Unity editor version: 2017.4.32f
Firebase Unity SDK version: 6.4.0
Firebase plugins in use: Auth
Additional SDKs you are using: Facebook v7.17.2
Platform you are using the Unity editor on: Windows
Platform you are targeting: Android
Please describe the issue here:
On device, the app crashes when trying to sign in a user with Facebook auth provider.
The crash only occurs when manually initialising Firebase.
Pre-conditions
- Firebase app configured to accept facebook sign in
- Facebook app configured to let firebase handle OAuth
Steps
- Launch the app
- Sign in with Facebook
- Wait to be logged in
- Try to sign in with Firebase using Facebook
- BOOM
In the editor, following these steps works perfectly fine. I can see the user has been added to the users in the firebase app with the right provider.
Logcat output:
09-07 10:49:56.528 5165 5195 E firebase: app != nullptr
09-07 10:49:56.530 5165 5195 E CRASH : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
09-07 10:49:56.530 5165 5195 E CRASH : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I am not using Firebase.FirebaseApp.DefaultInstance instead I am initialising Firebase myself as follows:
[SerializeField]
private TextAsset _firebaseConfigFile;
private Firebase.Auth.FirebaseAuth CreateAuth()
{
var firebaseOptions = Firebase.AppOptions.LoadFromJsonConfig(_firebaseConfigFile.text);
var mainFirebaseApp = Firebase.FirebaseApp.Create(firebaseOptions, "main_app");
return Firebase.Auth.FirebaseAuth.GetAuth(mainFirebaseApp);
}_firebaseConfigFile is assigned the json config file downloaded from my Firebase app.
Note
On device, I can signin/signup a user with email and password without a problem.
Please answer the following, if applicable:
Yes, I have been able to reproduce the issue with the test app.