How to switch back to the production Firebase after connecting a RN app to the Firebase emulator #7848
-
You can connect your development app to the Firebase emulator running on your development device by using However, reverting to the production instance is not straightforward. The app appears to keep communicating with the Emulator instead of the production Firebase, even when the The issue might arise because the default Firebase app instance, once configured to connect to the emulator, continues to do so even after the app restarts. I attempted to delete the default app instance and reinitialize it, but deleting the default Firebase app instance seems to be impossible. Does anyone have a solution for smoothly switching between the production and emulator instances? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
I don't see any problem with it and in fact use cloud auth and emulator auth all the time. In my experience it is absolutely as straightforward as: if you want to use the emulator, make those useEmulator / connectEmulator etc API calls, if you do not want to use it, do not make those calls. You will need to post a reproduction that demonstrates it does not work, but I'll beat you to that and post a reproduction that does work: our e2e test app which now has some manual testing panels
I see no problem. Can do same for macos/other, and ios. The all work. Will reopen if you can post a minimum complete reproducer |
Beta Was this translation helpful? Give feedback.
I don't see any problem with it and in fact use cloud auth and emulator auth all the time.
I just used it extensively over the last week in order to manually verify the TOTP PR we just merged since the emulator doesn't support it and we had to use cloud, but we use the emulator for the rest of our e2e testing.
In my experience it is absolutely as straightforward as: if you want to use the emulator, make those useEmulator / connectEmulator etc API calls, if you do not want to use it, do not make those calls.
You will need to post a reproduction that demonstrates it does not work, but I'll beat you to that and post a reproduction that does work: our e2e test app which now has some manual te…