Expo checkForUpdates fails on Android

  1. SDK Version: 38.0.0
  2. Platforms(Android/iOS/web/all): Android

Hi,

checkForUpdateAsync is working on iOS. However, it seems to be failing for at least one Android phone (perhaps more). It’s a Samsung Galaxy S20 running Android API 29. I tested this on the actual app in production on a real phone (not a simulator) and it still fails

Here’s the code I am using:

const checkForUpdates = async () => {
        try {
            if (!devEnvironment) {
                const update = await Updates.checkForUpdateAsync();
                if (update.isAvailable) {
                    toggleUpdateIsAvailable(true)
                    await Updates.fetchUpdateAsync();

                    // ... notify user of update ...
                    await Updates.reloadAsync();
                }
            }
        } catch (e) {
            console.log('error: ', e)
        }
    }

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