- Update applicationId & namespace in app/build.gradle to your app in firebase project.
- Update app/google-services.json to your firebase project.
- Run
npm i
in backend/functions directory followed bynpm run deploy
to deploy the cloud functions to your firebase project. - Run the app on an emulator and press the button in the bottom right hand corner to set the language, create a user and trigger the cloud function.
- Head to the cloud function logs and observe the locale as authBeforeUserCreated {"locale":"und",....other properties}. "und" means undetermined locale. This should be "en-US".
- In logcat, I observed the following log which explains why there is a bug:
2024-04-03 09:50:57.889 26056-26147 System io.flutter.plugins.firebase.tests W Ignoring header X-Firebase-Locale because its value was null.