-
Notifications
You must be signed in to change notification settings - Fork 612
Documentation: Can't recreate default Firebase App #890
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
In the meantime is there anything we can do to mitigate this issue as it's affecting a large percentage of our users? |
@kvanry Sorry for not getting back to you earlier. It looks like you are deleting the default app and attempting to replace it with a new FirebaeApp. To do this properly, you will have to manually pass in the new app into the Can you try this? I believe your error should then go away. |
I mean, yes we can try this, that being said if that is the fix, I feel like it should be more clear that if you delete the default app that this is necessary, either in documentation or if the error that is thrown could be more descriptive. Otherwise the assumption is that the new default app becomes the new FirebaseApp instance. |
Moving this to the |
This has an explanation of why it is tricky to implement delete effectively |
Just wanted to drop a note that our efforts are generally focussed only on APIs that are publicly documented. The delete API is currently not supported for these sorts of reasons. I'll leave this open as a feature request though. |
Describe your environment
Describe the problem
And
Steps to reproduce:
We haven't been able to pinpoint how this is occuring, however our setup is we dynamically can switch between firebase environments. We've spent a few days trying to replicate, unfortunately only our customers are finding this issue.
Relevant Code:
The text was updated successfully, but these errors were encountered: