-
Notifications
You must be signed in to change notification settings - Fork 46
[Question] Auth not working in Unity editor #1098
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
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Thanks for reaching out, @zxt385189207. There was also a similar issue filed before #1048 regarding Auth login. Did you recently change or restrict the API access? This could have triggered the issue. |
I did not impose any restrictions, or is it possible that Firebase has default settings? |
By the way, on another computer the same project printed USE_AUTH_EMULATOR not set. |
https://github.com/firebase/firebase-unity-sdk/tree/main/auth/testapp
With this code, turning off UNITYEDITOR can wait indefinitely. |
Sorry, I'm not sure what the issue is. I'm unable to reproduce the same behavior on my side. You mentioned that the issue is also reproducible on another computer, I wonder if the issue is the Also any chance you can share an MCVE? Please remove any PII (personally identifiable information). This'll help us speed up the investigation. Thanks! |
I think it might be a network issue. I created two projects and tried using different google-services.json files, but the result was the same. I'm a Unity developer in China, and I’m affected by the VPN. It seems that most developers don’t debug code or test in the Unity Editor, but rather on an emulator or real device. This issue seems to be quite rare. It's possible that if I send an MCVE, it might work fine in your network environment. I'm currently using the official Auth sample code. I encountered the following error:
In what situations does this error occur, and how can the client determine whether the issue is related to the network or the google-services.json ? |
Thanks for the additional information, @zxt385189207. You're right, given that you're using the official Auth sample code, the MCVE will most likely work on our side as well. After further discussing this with our engineers, we came to the conclusion that the issue is due to the network restriction and not related to the
I thought it could be due to a specific Firebase Project API restriction, which is why I considered changing the Unfortunately there's not much we can do here, since it looks like everything is working as intended on the SDK side. Network restrictions are out of our control. That said, I'll go ahead and close this thread. If you'd like to know more regarding these restrictions in relation to China, feel free to reach out to our Firebase support for more guidance. |
Can a proxy setting be added to network requests made by the Firebase SDK in Unity? @argzdev |
Sorry, you'll likely need to reach out to our Firebase support for more guidance regarding network connections. |
What is your question?
Unable to signin properly in the unity editor environment, but can sginin and upload and download files on my Android phone.
FirebaseException: An internal error has occurred.
I don't know where the setup caused this problem and I can't test the functionality in the unity editor.
Something like that firebase/firebase-cpp-sdk#10 , I wrote a simple demo with no other SDK.
I need help, please.
Firebase Unity SDK Version
11.6.0 and 12.2.0
Unity editor version
2021.3.12f1
Installation Method
Unity Package Manager
Problematic Firebase Component(s)
Authentication
Other Firebase Component(s) in use
Storage
Additional SDKs you are using
No response
Targeted Platform(s)
Desktop
Unity editor platform
Windows
Scripting Runtime
IL2CPP
Release Distribution Type
Pre-built SDK from https://firebase.google.com/download/unity
The text was updated successfully, but these errors were encountered: