Open dtomaszewski opened 1 day ago
When I manually check for updates on the device using the following code:
async function checkUpdate() {
try {
const update = await Updates.checkForUpdateAsync();
alert(`Update: ${update.isAvailable}`);
alert(`Update: ${JSON.stringify(update.manifest)}`);
alert(`Update: ${JSON.stringify(update)}`);
} catch (error) {
// Display an alert if an error occurs when fetching updates.
alert(`Error fetching latest Expo update: ${error}`);
}
}
I see that the update is available!
However, after performing several app restartt or running the following code to fetch and apply the update:
if (update.isAvailable) {
await Updates.fetchUpdateAsync();
await Updates.reloadAsync();
}
Appliocation is not updated with the new code, even after reloading/restarts this update is still available but never loaded
Build/Submit details page URL
No response
Summary
Issue Summary
I am unable to get my preview app, which is distributed internally, to work with EAS Update. I have reviewed several related issues but have not found a solution that resolves the problem. The issues I have checked include:
eas build
update previously released apps? (Stack Overflow)I have also followed the debugging guide provided in the Expo Docs and explored various suggestions from ChatGPT and Claude. Unfortunately, nothing has resolved the issue.
Current Situation
Everything seems to be configured correctly:
However, when I attempt to make changes locally and distribute them internally for testing, the updates do not show on my phone, even though everything seems to be in order. Here's the configuration I’m using for the
preview
build:What I Have Tried
runtimeVersion: { policy: "appVersion" }
.useEffect
or a user action button viaexpo-updates
."expo-updates"
as a plugin inapp.config
.Question
Is it even possible to use EAS Update with an internal distribution build for iOS? I've found a lot of related issues, but no concrete solutions yet.
Any guidance or solutions would be greatly appreciated!
Managed or bare?
Managed
Environment
Error output
There is no error, everything seems to work just fine, only issue is that updates are not visible on real iOS device.
Reproducible demo or steps to reproduce from a blank project
Use EAS Update for above configurations with internal distribution preview build and see no updates on the real device.