Skip to content

[expo-updates][Android] Prevent emergency launch after request header override - #49732

Open
roitium wants to merge 2 commits into
expo:mainfrom
roitium:fix/expo-updates-selection-policy
Open

[expo-updates][Android] Prevent emergency launch after request header override#49732
roitium wants to merge 2 commits into
expo:mainfrom
roitium:fix/expo-updates-selection-policy

Conversation

@roitium

@roitium roitium commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Why

Runtime update request-header overrides using Updates.setUpdateRequestHeadersOverride(requestHeaders) can prevent the embedded update from matching the effective configuration on a later cold start, causing an unnecessary emergency launch.

How

Keep the normal selection policy unchanged. When it finds no matching update, fall back only to the update embedded in the current binary.

Test Plan

I applied this patch to my app's expo-updates; it compiled successfully, and the bug got fixed.

Checklist

@expo-bot expo-bot added the contributor: external PR author is not a member of the expo GitHub org label Sep 4, 2026
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Subscribed to pull request

File Patterns Mentions
packages/expo-updates/** @Kudo, @alanjhughes, @wschurman

Generated by CodeMention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor: external PR author is not a member of the expo GitHub org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants