'Expo - React Native / Firebase app, APK working different than on Expo go app
I have built an app with Expo & firebase and its working with the expo go app. I ran "expo build:android" and got my APK file. The app loads and my Login and Register pages work as expected. However once logged in, none of my Firestore data loads and buttons do not work.
edit: Checked loggs and found that data is loading, just components not rendering as well as buttons not working.
I checked Firestore and the "Registered" user is being saved...
Auth and Firestore do seem to be working properly
Any help on this would be greatly appreciated. Also, what part of the app if any needs to be hosted?
Thank you!
Solution 1:[1]
What @Ali Mohammad wrote in the comments is working for me. Here is their comment, with improved formatting:
Go to the Firebase Console > Settings > Add app > select Android app and then download the google-services
file > add it to your app.json
like:
"{ "expo": { "android": { "package": "com.mypackage.coolapp", "googleServicesFile": "./google-services.json" } } }"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Jeremy Caney |