expo-community / expo-firebase-starter

🔥⚛️📱 Expo + Firebase Starter Kit
MIT License
491 stars 124 forks source link

App Crashes After Building and Installing on a real device #76

Open CaptainEboy opened 2 years ago

CaptainEboy commented 2 years ago

SDK Used: Sdk 46

PLATFORM: Android

After cloning the app using ' npx create-react-native-app --template https://github.com/expo-community/expo-firebase-starter'

I test the app and it works fine on the emulator, but after building the app using EAS, the app seems to crash.

It only shows the loading screen for the app,then it crashes.

amandeepmittal commented 1 year ago

Hi @CaptainEboy, does it logs the error on crash?

hemcharan22 commented 1 year ago

I ran into similar issues as well when installing it on an Android device

platform: android 12 phone : mi

i attached the error logs below

Screenshot_2023-01-20-17-40-59-595_com miui bugreport

Screenshot_2023-01-20-17-41-05-701_com miui bugreport

hemcharan22 commented 1 year ago

found the answer

you need to configure the environment variables in expo

image

its because your local emulator has the environment values but during production, your environment values are not available with expo.