-
Notifications
You must be signed in to change notification settings - Fork 429
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
Unity Firebase emulator suite: FirestoreSettings: Changing it at runtime crashes Unity #719
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
Unfortunately the emulator suite is currently not supported on Unity, though it is on our radar. Sorry for the inconvenience. |
Hello, @a-maurice, have same needs, is there any news on emulator support? |
1 - Any plans or news here? @a-maurice @chkuang-g |
👍 @a-maurice @chkuang-g It would be very useful. |
@a-maurice can you please note on the docs that Unity is not supported? It is not clear: https://firebase.google.com/docs/emulator-suite |
@a-maurice is there any progress on this? |
I am not able to reproduce this bug; that is, using the Firestore emulator from Unity Editor is working for me. This bug was originally logged against a very old version of the SDK (6.15.0). Please try with the latest version (8.3.0). Also, note that the API to edit the settings has changed. Here is the new way to setup the emulator:
|
@dconeybe I apologise, my previous message may have been a bit unclear. My enquiry was more about the Auth, Functions and the Realtime Database emulators - I wasn't actually using Firestore at the time. I have noticed that none of the unity tutorials appear to have set up instructions for any of these. All of the node based tutorials seemed to make use of a UseEmulator method which does not appear to be in most of the unity apis. (I did find that the FirestoreFunctions API has a method for setting it up with the emulator, and that is working) The steps I have found online for the Database is to change the url in the google-services file, but that doesn't appear to be working for me. Tracing out the database url in the settings always shows the default one. I have found nothing on how to get it working with the Auth emulator at all - which I think I need to be able to have the auth properties appear in the functions emulator? Aplogies if this was not the best place to ask these questions. I was repeatedly brought to this page for searches about how to get the emulators working in unity, and it seemed related, so I thought it was the best place to ask. If you could point me in the right direction regarding these issues, I would greatly appreciate it. Also, for what it is worth, I was able to get Firestore working with the emulator using your above steps. |
@sevdanski I'm glad to hear that you got the Firestore emulator working with your Unity app. We have plans to add a convenience Since the issue with the Firestore emulator is resolved, I'm going to remove the Firestore label from this ticket. And since my personal expertise is in Firestore (not Firebase in general) I'm going to leave this discussion and let the other team members response to the questions about the other emulators. |
Hi @sevdanski, As of today we don't have a Unity guide on how to use Firebase Emulators across all of our products, so that's probably why your searches keep landing you here. Additionally, we currently don't officially support the use of emulators via the Unity SDK, though its on our roadmap. Our initial investigation made us aware of some runtime issues between Unity and varoius product emulators so the question of support isn't simply one of documentation but of isolating, testing and fixing issues on a product per product basis, and then adding tests to our CI workflows. When we do have official support you should expect proper documentation and a smoother experience than what you're encountering today (sorry for the inconvenience). Additionally you should see an official update to this particular ticket -- it won't be a stealth release for sure! |
@DellaBitta @dconeybe Thanks to you both for the info. I'll keep an eye out for the updates! |
#719 (comment) worked for me. Note that for those using separate assembly references for their tests and runtime code, |
Any news on this? |
Any chance we can get a peek at this roadmap? |
Yeah it seems Unity firebase SDk is still not updated to fully support auth emulator, functions ( and maybe others?) |
We need a firebase update to support emulator throug Unity ASAP! is a must for testing |
We need it !!! |
it's been already 3 years since the first message was written, and still nothing.. |
Holy cowza, how many people are blocked like we are, just because of a lack of resources at Firebase on Unity? I would love some more transparency about what's working vs not working. I hate wasting time hunting down what major pieces are not working. Emulator suite is pretty darn important to get running inside a unit testing workflow. Us Unity developers need it. |
PLEASE ADD IT |
Is there any Update? |
Any updates about this? |
Hey :) We just set up the firebase emulator suite with success.
Goal: We want to make our Unity project use that local instance.
We tried
FirebaseFirestore db = FirebaseFirestore.DefaultInstance; db.Settings = db.Settings.WithHost("localhost:8080").WithSslEnabled(false).WithPersistenceEnabled(false);
But it crashes unity. Is there a way to set this yet in the Unity Firebase SDK?
Also creating a new
FirebaseFirestoreSettings objects with the same values result in a crash when assigned to the current FirebaseFireStore.DefaultInstance.
Environment:
Editor
Unity Version:
2019.3.11f1
Firebase SDK:
6.15.0
Used Packages:
Analytics
Crashlytics
FireStore
RemoteLinks
Auth
The text was updated successfully, but these errors were encountered: