-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Feature Request] add 'disableWarnings' option to emulators #2724
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
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
Waiting for this. Any plans for resolution please? |
@lbar i'm waiting for validation before submitting a PR. .firebase-emulator-warning {
// hide the warning banner as AngularFire doesn't support the 'disableWarnings' option
display: none;
} |
@geromegrignon What kind of validation you're waiting for ? The way I see it, to solve this issue one should:
if (useEmulator) {
// Firebase Auth doesn't conform to the useEmulator convention, let's smooth that over
const [url, port, options] = useEmulator;
auth.useEmulator(`http://${url}:${port)}`, options);
} |
@GrandSchtroumpf i wanted to make sure there is no work in progress about that. I created a PR using your solution. |
Addressed in v7 |
changing the injection token URL from ...
{ provide: USE_AUTH_EMULATOR, useValue: environment.useEmulators ? ['http://localhost', 9099] : undefined },
... |
Thanks @Trindade7 |
Version info
Angular:
11.0.5
Firebase:
8.0
AngularFire:
6.1.4
Other (e.g. Ionic/Cordova, Node, browser, operating system):
Description
When using the emulators tokens (https://github.com/angular/angularfire/blob/master/docs/emulators/emulators.md), it uses the
useEmulator(url)
firebase-js-jdk function under the hood.But it miss the disableWarnings option is stated here : https://github.com/firebase/firebase-js-sdk/blob/master/packages/auth/src/auth.js
This option allows to hide the bottom banner :

How to reproduce these conditions
Steps to set up and reproduce
ng new myProject
npm install -g firebase-tools
firebase init
to initialize a firebase project with at least one featurefirebase init
and choose 'emulators' to setup the emulators for the previous chosen featuresng serve
The banner should be visible.
Expected behavior
The token should be improved by adding the disableWarnings option
Actual behavior
The banner is always visible and can hide content.
Proposal
I can create a PR if you approve this change (it'll be applied to each token).
The text was updated successfully, but these errors were encountered: