Skip to content

fix(mobile): treat wired ethernet as unmetered on ios#29351

Open
santoshakil wants to merge 1 commit into
mainfrom
fix/ios-ethernet-unmetered
Open

fix(mobile): treat wired ethernet as unmetered on ios#29351
santoshakil wants to merge 1 commit into
mainfrom
fix/ios-ethernet-unmetered

Conversation

@santoshakil

@santoshakil santoshakil commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Description

on ios, backup only counted wifi as unmetered. so with "upload over cellular" off and only a wired ethernet connection (usb-c adapter, or the ios app on a mac), backups got prepared but never uploaded — turning "upload over cellular" on made it work, which is the tell. now the apple side checks the path's metered flags (not cellular, not expensive, not constrained) instead of the interface type, same as android already does, so wired ethernet counts like wifi.

tested on an iphone 15 pro max with a usb-c ethernet adapter in airplane mode (wifi + cellular off, ethernet only) and "upload over cellular" off. before: backup skips everything (network capabilities come back empty, isUnmetered false). after: same setup reports unmetered and the photo uploads over ethernet and shows up on the server. wifi-only backup still behaves the same.

fixes #26493

check the metered flags instead of the interface type, so ethernet counts like android already does.
@immich-push-o-matic

Copy link
Copy Markdown

📱 Android release APK (universal)8136babc81d65c826c6c8634a3a47a71fe656e7c

Download: https://github.com/immich-app/immich/actions/runs/28286702633/artifacts/7923738029

QR code QR code

Installs as a separate app (applicationId app.alextran.immich.pr29351), so it coexists with the Play Store version and any other PR builds.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS app will not upload over ethernet if "upload over cellular" is disabled

2 participants