EAS update not working
See original GitHub issueBuild/Submit details page URL
Summary
EAS Update fails to produce any updates on my phone. I’m testing the workflow as follows:
I have an internal distribution build on the channel “preview” which has a branch named “preview” associated to it.
- I run eas build -p android --profile preview and install the apk
- I do a small text change on one of my screens
- I run eas update --branch preview
- The update command runs successfully and the update is shown if I run eas update:list.
However, the update never appears on my phone. If I force quit the app and reload it, it just loads forever. If I close it again it opens with the previously built version.
Managed or bare?
Bare
Environment
System: OS: Linux 5.4 Ubuntu 18.04.5 LTS (Bionic Beaver) Shell: 4.4.20 - /bin/bash Binaries: Node: 12.22.5 - /usr/bin/node Yarn: 1.22.17 - /usr/bin/yarn npm: 8.5.1 - ~/ov/overvinne-app/node_modules/.bin/npm npmPackages: @expo/metro-config: ^0.3.6 => 0.3.11 @expo/webpack-config: ~0.16.2 => 0.16.20 expo: ^44.0.0 => 44.0.6 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-web: 0.17.1 => 0.17.1 npmGlobalPackages: eas-cli: 0.50.0 expo-cli: 5.3.1 Expo Workflow: bare
My app.config has these relevant parameters:
sdkVersion: "44.0.6",
runtimeVersion: "1.0.4",
updates: {
fallbackToCacheTimeout: 1000,
url: "https://u.expo.dev/{projectId}"
},
My androidmanifest.xml has these relevant parameters:
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/> <meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="1000"/> <meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="https://u.expo.dev/{projectId}"/> <meta-data android:name="expo.modules.updates.EXPO_RUNTIME_VERSION" android:value="1.0.4"/>
my eas.json has these relevant parameters:
"build": {
"preview": {
"distribution": "internal",
"channel": "preview",
"android":{
"credentialsSource": "local"
},
My projectId is correct, as I’ve checked it against eas:project:info. Also I have queried the manifest file at the expo update url with the relevant runtime information and platform, and the manifest.json looks to be correct.
My phone is a galaxy S10+ with android version 12.
I have tried removing the sdkVersion-parameter from the app.config-file, but the build info then says that I’m running SDK 44.0.0 which is incompatible with eas updates. I have run eas update:configure and eas build:configure and tried building again. I also tried doing the same thing with a google play build in the production channel but I got the exact same result.
Error output
N/A
Reproducible demo or steps to reproduce from a blank project
See environment and summary
Issue Analytics
- State:
- Created a year ago
- Comments:13 (1 by maintainers)
Top Related StackOverflow Question
Not sure if you have the same issue. Might be worth looking at the app startup logs. See the issue I reported below
https://github.com/expo/expo/issues/19046#issue-1367473251
@baochungit Still occur on my end, cannot receive the changes update from eas update. Btw, I am using expo SDK 46 too. Any solution ?