Hey,
I stuck with an issues while working on app
I want to force update my app using OTA update or through manually play store update.
Please guide me how to do?
Hey @adamjnav Thanks for reply.
force update :- It means when user came back in Expo app (Login Screen) then if App update is available on play store OR App store then Download it automatically in Background.
Step 1 :- Nothing Happened.
Code :-
//function for checking update is available or not
async getOTAUpdates(){
try {
const update = await Expo.Updates.checkForUpdateAsync();
if (update.isAvailable) {
await Expo.Updates.fetchUpdateAsync();
// ... notify user of update ...
Expo.Updates.reloadFromCache();
}
} catch (error) {
// handle or log error
Alert.alert('Some error Occured' + error);
}
}
Hey @adamjnav
updates
field in app.json
:-
{
"updates": {
"enabled": true,
"checkAutomatically": "ON_LOAD",
}
}
Hey @biplov14,
Just to cover all possibilities, are you sure you have an update available? Also, if you are using release channels, can you make sure you’re publishing to the channel that you app is running? When running in the expo client, the one that is used by default is the default
channel.
Cheers,
Adam
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.