# upwell/expo-updates (/reference/expo-updates)

```ts
import { expoUpdatesAdapter } from 'upwell/expo-updates';

<UpwellProvider policy={url} ota={expoUpdatesAdapter()} />;
```

Requires `expo-updates` (and uses `expo-constants`, which Expo apps already have).

## Options [#options]

<TypeTable
  type={{
    checkInDev: {
      type: 'boolean',
      default: 'false',
      description: 'Check for updates in development builds too. expo-updates is normally off there.',
    },
  }}
/>

## Behavior [#behavior]

| Method | Uses |
| --- | --- |
| `getRuntime()` | `Updates.runtimeVersion`, falling back to the `runtimeVersion` in your app config (debug builds report an empty runtime). `Updates.updateId`, the EAS update group id from the manifest, and `Updates.isEmbeddedLaunch` |
| `check()` | `Updates.checkForUpdateAsync()`. Reports `disabled` when `Updates.isEnabled` is false, or in development unless `checkInDev` is set |
| `download()` | `Updates.fetchUpdateAsync()`, returning the fetched manifest's id for the `ota_downloaded` event |
| `apply()` | `Updates.reloadAsync()` |

### Matching releases.json [#matching-releasesjson]

The adapter reports both the update id and the EAS **update group** id, so a `releases.json` entry
can use either. EAS prints the group id when you publish, and the same group covers iOS and Android,
which makes it the convenient choice.
