After some finagling, I was able to get updates successfully passed to my app with the following command:
eas update --branch next --platform all --message “iterate to 1.0.1”
My relevant eas.json block looks like this:
"new": { "channel": "next", "android": { "buildType": "apk" }, ios: { "enterpriseProvisioning": "universal", resourceClass: "m1-medium" } }
What I am noticing is that when I test this on my Android, I have to actually restart my phone to get the update to show up. Opening the app alone doesn’t seem to do anything, regardless of how many times I open it. It’s also only after a restart of the phone that I see the app splash screen. Otherwise when I click the app icon I immediately see the login screen. Is this the expected behavior?
I am handling checking and applying updates if they exist like so:
async componentDidMount() {
await this.onFetchUpdateAsync();
}
onFetchUpdateAsync = async () => {
try {
const update = await Updates.checkForUpdateAsync();
if (update.isAvailable) {
await Updates.fetchUpdateAsync();
await Updates.reloadAsync();
}
} catch (error) {
alert(`Error fetching latest Expo update: ${error}`);
}
};