Hi there !
We recently migrated from codepush to EAS Updates,
Everything seems to work perfectly at first sight, iOS updates are properly getting downloaded and installed, same for Android.
But in some cases, some Android users doesn't get the update.
When checking to the updates details in expo.dev I can see their are installs for both platforms, and no failed installs. So everything looks good.
Did anyone encounter this kind of issue ? Or am I missing something ?
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for issues with metro config
✔ Check npm/ yarn versions
✔ Check for common project setup issues
✔ Check for app config fields that may not be synced in a non-CNG project
✔ Check if the project meets version requirements for submission to app stores
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check native tooling versions
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK
Error output
No response
Reproducible demo or steps to reproduce from a blank project
Unfortunately it is not really possible to share a reproducible demo..
But here is the js code that is supposed to pull and install the updates:
const handleExpoUpdate = async () => {
try {
const update = await Updates.checkForUpdateAsync();
if (update.isAvailable) {
await Updates.fetchUpdateAsync();
await Updates.reloadAsync();
}
} catch (error) {
console.error('Error checking for updates:', error);
}
};
useEffect(() => {
const subscription = AppState.addEventListener('change', (nextAppState) => {
if (appState.current.match(/inactive|background/) && nextAppState === 'active') {
// Check for update when app comes back from background
handleExpoUpdate();
}
appState.current = nextAppState;
});
// Check for update when app mounts
handleExpoUpdate();
return () => {
subscription.remove();
};
}, []);
Build/Submit details page URL
No response
Summary
Hi there ! We recently migrated from codepush to EAS Updates, Everything seems to work perfectly at first sight, iOS updates are properly getting downloaded and installed, same for Android. But in some cases, some Android users doesn't get the update.
When checking to the updates details in expo.dev I can see their are installs for both platforms, and no failed installs. So everything looks good.
Did anyone encounter this kind of issue ? Or am I missing something ?
Managed or bare?
Bare
Environment
npx expo-env-info
npx expo-doctor
Error output
No response
Reproducible demo or steps to reproduce from a blank project
Unfortunately it is not really possible to share a reproducible demo..
But here is the js code that is supposed to pull and install the updates: