App Force update possible or not in expo ?


#1

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?


#2

Hey @biplov14,

What do you mean by “force update” exactly?

Cheers,

Adam


#3

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);
    }
  }

#4

@adamjnav Any update ?


#5

Hey @biplov14,

What do you have under your updates field in app.json?


#6

Hey @adamjnav

updates field in app.json :-

{
  "updates": {
    "enabled": true,
    "checkAutomatically": "ON_LOAD",
  }
}

#7

Hey @adamjnav & @Expo

Any Update ?


#8

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


#9

@adamjnav

update available :- sure.
publishing :- expo build:android or ios.

Thanks for reply.


closed #10

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.