Create Your Project
Prerequire
- Install expo cli
|
- Login in
|
- Config eas
|
Run a build
- Build For Android Emulator/device or iOS Simulator
- Reamme
- The easiest way to try out EAS Build is to create a build that you can run on your Android device/emulator or iOS Simulator. It’s quicker than uploading it to a store, and you don’t need store developer membership accounts. If you’d like to try this, read about creating an installable APK for Android and creating a simulator build for iOS.
- Build for app stores
Config a profile to build APKs
- developmentClient to true (default)
- android.buildType to apk
- android.gradleCommand to :app:assembleRelease, :app:assembleDebug or any other gradle command that produces .apk
Now you can run your build with the following command:
|
Install your build
tips: If you haven’t installed or run an Android Emulator before, follow the Android Studio emulator guide before proceeding.
- Once your build is completed, the CLI will prompt you to automatically download and install it on the Android Emulator. When prompted, press Y to directly install it on the emulator.
- In case you have multiple builds, you can also run the
eas build:run
command at any time to download a specific build and automatically install it on the Android Emulator:
|
- Running the latest build
|
Pyhsical device
- Download directly to the device
- Once your build is completed, copy the URL to the APK from the build details page or the link provided when eas build is done.
- Send that URL to your device. Maybe by email? Up to you.
- Open the URL on your device, install the APK and run it.
Read Bild logs on Expo
There you can see build history, make sure you have no warnings or Errors
in buid process, like:
- Errors
- Otherwise your app will crash before runing on you Device
Fix Build Warings and Errors
- Expo cli
|
- For example
|
we can follow the logs suggesstions:
- : android/adaptiveIcon - should NOT have additional property ‘jsEngine’.
- Command “expo doctor” failed. npx -y expo-doctor exited with non-zero code: 1
these waring and error indecated that the building process is not running correct
Although
it build successAfter fix issues, it should be like:
Push notifications overview
Follow the instructions should do the work!
Key Step
Step 3: Get Credentials for development builds
Android
Setting up FCM
Android FCM
For Android and iOS, there are different requirements to set up your credentials.
For Android, you need to configure Firebase Cloud Messaging (FCM) to get your credentials and set up your Expo project. It is required for all Android apps using Expo SDK.
|
Setting up FCM
- Follow these 7 steps Setting up FCM
- Warning Proxy might need to allow google’s api & analysiz api so on, or you will failed at setting your config and enable services.
Upload server credentials
key step
- Enable firebase service & get token
- paste token in your project
- path:
doerbasemobile/credentials/android/com.yourname.doerbasemobile
- path:
- notice
|