capacitor-firebase icon indicating copy to clipboard operation
capacitor-firebase copied to clipboard

feat(authentication): Add support for disableWarnings when using emulator with web

Open mcfarljw opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe: Using the emulator for the web adds as banner to the bottom indicating it's an emulator environment which often covers up part of the layout making it hard to develop the layout.

screen

Describe the solution you'd like: I'd like the useEmulator function to pass along the disableWarnings value in the options.

FirebaseAuthentication.useEmulator({
  host: 'http://localhost',
  port: 9099,
  options: {
    disableWarnings: true,
  },
})

Describe alternatives you've considered: Using CSS to hide the div is a workaround for the time being.

.firebase-emulator-warning {
  display: none !important;
}

Additional context: https://firebase.google.com/docs/reference/js/auth.emulatorconfig.md#emulatorconfigoptions

mcfarljw avatar Feb 13 '23 22:02 mcfarljw