Skip to content

🐛 - Fix EAS Update scheme validation#641

Merged
guytepper merged 1 commit into
mainfrom
fix/eas-update-scheme-validation
Jun 29, 2026
Merged

🐛 - Fix EAS Update scheme validation#641
guytepper merged 1 commit into
mainfrom
fix/eas-update-scheme-validation

Conversation

@guytepper

Copy link
Copy Markdown
Member

Problem

eas update was failing with a manifest validation error:

Manifest Validation Error:
scheme:must be string
scheme/2:'scheme/2' must match pattern "^[a-z][a-z0-9+.-]*$"
scheme:must match exactly one schema in oneOf

EAS Update's manifest validator requires URL schemes to be lowercase (^[a-z][a-z0-9+.-]*$). Our liveActivity scheme (scheme/2) failed because of the uppercase A. This surfaced only on eas updateeas build and the OS treat schemes case-insensitively, so it never complained before.

Changes

  • app.config.ts — rename scheme liveActivityliveactivity (the actual fix).
  • BetterRailLiveActivity.swift — Live Activity deep-link URL now uses liveactivity:// to match the registered scheme.
  • use-deep-linking.ts — deep-link handler matches case-insensitively, so it correctly handles both old (already-installed) builds emitting liveActivity:// and new builds emitting liveactivity://.

Safety

The Swift change only takes effect in a new native build, but the current production binary still emits liveActivity://. Because the JS handler is now case-insensitive, this is safe to ship as an OTA update right now — both casings are handled.

https://claude.ai/code/session_015RHnt2t7dXS9c5PAqLNkgM

EAS Update's manifest validator requires URL schemes to match
^[a-z][a-z0-9+.-]*$ (lowercase only). The "liveActivity" scheme
failed validation due to its uppercase A, blocking eas update.

- Rename scheme to "liveactivity" in app.config.ts
- Update the Live Activity deep-link URL to liveactivity://
- Make the JS deep-link handler case-insensitive so it handles
  both old (already-installed) and new builds

Claude-Session: https://claude.ai/code/session_015RHnt2t7dXS9c5PAqLNkgM

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the deep link scheme for live activities from camelCase ("liveActivity") to lowercase ("liveactivity") to comply with EAS Update manifest validation. This change is applied across the app configuration, deep-linking hook, and Swift widget code. The review feedback recommends a more robust check in the deep-linking hook by using startsWith instead of includes to prevent potential false positives.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

trackEvent("deep_link_widget")
}
if (url.includes("liveActivity")) {
if (url.toLowerCase().includes("liveactivity")) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using .includes() to match the deep link scheme can lead to false positives if the string "liveactivity" appears elsewhere in the URL (for example, in a query parameter or path of a different URL). It is safer and more robust to check if the URL starts with the scheme.

Suggested change
if (url.toLowerCase().includes("liveactivity")) {
if (url.toLowerCase().startsWith("liveactivity://")) {

@guytepper guytepper changed the title 🐛 - Fix EAS Update scheme validation (lowercase liveActivity) 🐛 - Fix EAS Update scheme validation Jun 29, 2026
@guytepper guytepper merged commit aee3183 into main Jun 29, 2026
3 checks passed
@guytepper guytepper deleted the fix/eas-update-scheme-validation branch June 29, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant