firebase / firebase/firebase-unity-sdk

FirebaseApp.Create not override default instance

Open
#379 11 comments 0 reactions 0 assignees View on GitHub
api: core type: feature request
Dominant language
C#
Stars
320
Forks
60
Avg merge
11h 15m
Merged PRs (30d)
11

Description

### Please fill in the following fields:
Unity editor version: 2018.421f
Firebase Unity SDK version: 6.12.0
Source you installed the SDK : unitypackage
Firebase plugins in use : Auth FireStore
Additional SDKs you are using : Facebook AdMob VoxelBusters
Platform you are using the Unity editor on : Windows
Platform you are targeting : Android
Scripting Runtime : IL2CPP

### Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

```C#
FirebaseApp.LogLevel = Firebase.LogLevel.Verbose;
var status = await FirebaseApp.CheckAndFixDependenciesAsync();
var main = FirebaseApp.Create(new AppOptions() {
ProjectId = "{another}",
StorageBucket = "{anotherBucket}"
});
```

With the code above, the `main.Options.ProjectId` and `DefaultInstance` still being the ID from `config.json`. Is it a bug or is it intended?

### Please answer the following, if applicable:
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
- Don't know

What's the issue repro rate? (eg 100%, 1/5 etc)
- 100%

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.