Skip to content
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

feat: support Firebase Local Emulator #19

Closed
tlebeitsuk opened this issue Mar 21, 2022 · 3 comments · Fixed by #22
Closed

feat: support Firebase Local Emulator #19

tlebeitsuk opened this issue Mar 21, 2022 · 3 comments · Fixed by #22

Comments

@tlebeitsuk
Copy link

tlebeitsuk commented Mar 21, 2022

Is your feature request related to a problem? Please describe:

Firebase Local Emulator is not currently supported.

Describe the solution you'd like:

iOS

#if DEBUG
     Auth.auth().useEmulator(withHost:config.devIP, port:9099)
#endif

Android

String devIP = this.config.getDevIP();

if(BuildConfig.DEBUG) {
     FirebaseAuth.getInstance().useEmulator(devIP, 9099);
}
@tlebeitsuk tlebeitsuk changed the title feat: Emulator support feat: support Firebase Local Emulator Mar 21, 2022
@robingenz
Copy link
Member

Hi @tlebeitsuk,
Thank you for your request! I will have a look at it!

@robingenz
Copy link
Member

Hi @tlebeitsuk,
You can try it out if you want (dev build):

npm i @capacitor-firebase/authentication@0.1.1-dev.62d5d5f.1647985256

Docs: https://github.com/robingenz/capacitor-firebase/blob/62d5d5ff067cebf175786dafbc082d3931366668/packages/authentication/README.md#useemulator

@tlebeitsuk
Copy link
Author

Thanks for the quick solution, @robingenz! Seems to work as expected.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants