firebase / firebase/quickstart-unity

Unity + Firebase emulator suite: FirestoreSettings: Changing it at runtime crashes Unity

Open
#719 24 comments 8 reactions 0 assignees View on GitHub
type: feature request
Dominant language
C#
Stars
923
Forks
456
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.