home-assistant / home-assistant/android

Android Companion App WebView overrides download filename

Open
#6,423 1 comment 0 reactions 0 assignees View on GitHub
bug webview
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

**Home Assistant Android app version(s):**
Version 2026.2.1-full
**Android version(s):**
13 and 15 (phone /tablet)
**Device model(s):**
Galaxy Tab S7/other devices with android too
**Home Assistant version:**
2026.2.1
**Last working Home Assistant release (if known):**

**Description of problem, include YAML if issue is related to notifications:**
In the Home Assistant Companion App (Android), WebView downloads ignore the filename set via `.`
In a normal browser the filename is correct (e.g. `theme..css` or `prefs..json`).
In the Companion App it always saves as `Home Assistant YYYY-MM-DD HH-MM-SS.css/json`.

Steps to reproduce:
1. Open a custom HTML page in a HA WebView (panel/iframe).
2. Trigger a download using `
` (also tested with `data:` URLs).
3. Save the file in the Companion App.

Expected behavior: Saved filename matches the download attribute.
Actual behavior: Filename is overwritten to `Home Assistant YYYY-MM-DD HH-MM-SS.*`.

**Companion App Logs:**

```

```

**Screenshot or video of problem:**

**Additional information:**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.