- SDK Version: 45
- Platforms(Android/iOS/web/all): iOS + Android
Hello! We would like to force all app updates on the user, both OTA and native-updates. The OTA updates we’ve handled without problems, but is there some expo-compatible way of checking if there is a new native build available? We’ve tried to check on the incoming OTA if it requires a higher runtime version than the current native shell supports, and implement some logic around that, like:
const update = await Updates.checkForUpdateAsync()
const updateRuntimeVersion = update.manifest?.runtimeVersion
const currentRuntimeVersion = Constants.manifest?.runtimeVersion
if (updateRuntimeVersion > currentRuntimeVersion) {
// some logic asking the user to update app
}
But update.manifest
is always undefined.
Is there some way of checking on the incoming update which runtime version it has? Or some other expo-friendly way of knowing if there’s a native update available?