Open ahmedelsayed11 opened 1 week ago
My code to check updates is:
const checkForUpdates = async () => {
if (__DEV__) {
// Skip the update check in development
return;
}
try {
const update = await Updates.checkForUpdateAsync();
alert('🚀 ~ checkForUpdates ~ update:', update);
if (update.isAvailable) {
await Updates.fetchUpdateAsync();
Alert.alert(
'Update Available',
'An update has been downloaded and will be applied on restart.',
[
{
text: 'Restart Now',
onPress: async () => await Updates.reloadAsync(),
},
],
);
}
// To do make update
} catch (e) {
alert('🚀 ~ checkForUpdates ~ e:', JSON.stringify(e));
console.error('Error checking for updates:', e);
}
};
@szdziedzic
Build/Submit details page URL
https://expo.dev/accounts/waseet/projects/waseetnet
Summary
What happens is, I am creating a build using
eas build --profile staging --platform ios
And it's successfully created the build and uploaded it to testflight and it runs without any issue.When i make some edits on my HomeScreen adding a new button and make
eas update --branch staging
it create the update successfully but nothing changes when Restart the app to apply the updtesmy app.json is
My eas.json is:
My package.json is:
Managed or bare?
bare app
Environment
Error output
No response
Reproducible demo or steps to reproduce from a blank project
Create a new fresh react native app with versions:
"react-native": "0.74.1", "react": "18.2.0", "expo": "^51.0.0", "expo-updates": "~0.25.27",