Open dixonl90 opened 1 week ago
Hello!
I’m sorry to hear you're experiencing this issue. Before we run some tests, could you let me know where you're trying the app after changing environments? Are you using Run Mode or Test Mode?
Thanks for your help!
Hello!
I’m sorry to hear you're experiencing this issue. Before we run some tests, could you let me know where you're trying the app after changing environments? Are you using Run Mode or Test Mode?
Thanks for your help!
Hi @Alezanello, thanks for looking into this. I'm switching the environment and then using local run to test on my Android device.
After switching to the Development environment, I can see google-services.json is correctly updated if I open the code in VSCode. However, I added a breakpoint to FirebaseAuth.instance.createUserWithEmailAndPassword in lib/auth/firebase_auth/email_auth.dart and found the Production Firebase options had been passed.
From VSCode, I ran flutter clean and then launch the app in release mode and it seems to have picked up the development Firebase backend. I assume it was the clean command that helped, but this means I expect a deployment will use the correct backend.
Can we access your project?
Current Behavior
When I switch between the production and development environment, the firebase backend being used by the app does not change
Expected Behavior
When switching environments, the firebase backend used by the app should also update.
Steps to Reproduce
Reproducible from Blank
Bug Report Code (Required)
IT48iPHqw5VNpbxa1s+JbvpV+SAXQz47R4Iz0epDTUw8J6rPPJkAZffBblRuTde+TVdqOVmJrGc00qCKkvPqG/oFCwSqeYNez7lUExXNTkKRacWlBs2SRXQlL9JgGX6a3KaCmA9QAMhaSCEewGWYIt+vVhLrK4f4ClQzL/yaKtjJpUq8FQzvFxBVzmNecCfn
Visual documentation
N/A
Environment
Additional Information
No response