Explore Library
Code Quiz

Applying an OTA Update on Launch

Spot the missing step that prevents an EAS OTA update from ever being applied.

Codetypescript
import * as Updates from 'expo-updates';

export async function syncOtaUpdate() {
  try {
    const result = await Updates.checkForUpdateAsync();
    if (result.isAvailable) {
      // New update found on the EAS server
      await Updates.reloadAsync();
    }
  } catch (e) {
    console.log('Update failed', e);
  }
}

This runs without throwing, but the new OTA update is never actually applied. What is the bug?