Handle PR OTA version mismatches and failures (#11330)

This commit is contained in:
Samuel Newman
2026-07-30 17:40:49 +03:00
committed by GitHub
parent 157a1893fd
commit 17c1ee4869
8 changed files with 403 additions and 26 deletions
+9 -1
View File
@@ -84,10 +84,18 @@ export function useIntentHandler() {
}
case 'apply-ota': {
const channel = params.get('channel')
const releaseVersion = params.get('releaseVersion')
const buildNumber = params.get(
IS_IOS ? 'iosBuildNumber' : 'androidBuildNumber',
)
const appVersion =
releaseVersion && buildNumber
? `${releaseVersion}.${buildNumber}`
: null
if (!channel) {
Alert.alert('Error', 'No channel provided to look for.')
} else {
tryApplyUpdate(channel)
tryApplyUpdate(channel, appVersion)
}
return
}