- SDK Version: 33.0.0
- Platforms(Android/iOS/web/all): iOS / potentially Android
Hi,
I wanted to share an issue I am facing on a project recently. I am doing OTA updates using expo publish for my app.
After an update if I restart my app twice on my android phone I get the new version.
However people with an iPhone installing a brand new version of the app are still getting the old version. They after have to restart it twice to get the latest. As you can guess it is a very bad user experience and not acceptable.
I tried the following, but so far it seems nothing worked:
in App.json
"updates": {
"fallbackToCacheTimeout": 30000,
"enabled": true,
"checkAutomatically": "ON_LOAD"
}
on my first screen I even added:
async componentDidMount() {
const update = await Updates.checkForUpdateAsync();
if (update.isAvailable) {
try {
await Updates.fetchUpdateAsync()
Updates.reload()
} catch (err) {
console.log(err)
}
But it seems it doesn’t work either.
I am now upgrading to Sdk35 and will update a new version on the App Store to make sure people get the latest version but I think it was worth it to mention it to understand the root of the issue.
Best and thanks in advance.