Android App (v4.78.0) fails to download/open PDF files with "Error while downloading file" despite working fine on Web & Desktop

Hello Rocket.Chat community,

I am facing a persistent issue with the official Android mobile application (v4.78.0) where downloading or opening PDF files fails immediately with the error “Error while downloading file”.

Environment Details:

  • Server OS: Ubuntu host running via Docker

  • Rocket.Chat Version: 8.9.0

  • Reverse Proxy: Traefik (with valid Let’s Encrypt SSL, full certificate chain verified, Verify return code: 0)

  • Mobile Client: Official Rocket.Chat Android App v4.78.0 on Samsung S25 Ultra (Android 17 / One UI)

What works:

  • Downloading and viewing PDFs works perfectly fine on Windows Desktop App, desktop browsers, and mobile Chrome browser (both via Wi-Fi and 4G/5G).

  • curl requests to the file URL return HTTP/1.1 200 OK with proper headers (Content-Disposition: inline, correct Content-Type: application/pdf).

What we have already tried / checked:

  • Disabled Protect Uploaded Files, Restrict files to rooms' members, and JWT/CSP restrictions in Workspace Settings.

  • Added Traefik middleware to strip unwanted Content-Security-Policy headers and forced Content-Disposition: inline.

  • Tried clearing local server cache and clearing app data on Android.

  • Tested on both mobile data (4G/5G) and Wi-Fi.

  • Even tested via the official Android app, but the native client fails to download/preview the file (no network request hits Traefik/server at all when triggered from the chat stream).

It seems like the native React Native / Expo FileSystem downloader on Android 17 fails to handle the file storage interaction or stream negotiation. Has anyone encountered this or found a workaround for Android clients?

Thank you for your support!

Server Setup Information

  • Version of Rocket.Chat Server: 8.9.0
  • Operating System: Ubuntu Linux (Docker Host)
  • Deployment Method: Docker Compose (Traefik + Rocketchat + MongoDB)
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled (Standard Docker MongoDB setup)
  • NodeJS Version: v24.15.0
  • MongoDB Version: 7.0.32 / wiredTiger
  • Proxy: Traefik v3.4 (Let’s encrypt - custom headers)
  • Firewalls involved: Standard UFW / Router firewall (Port 80 and 443 open)

Before you go any further please read the requirements for 8.9.x and compare with your setup.

Engine versions

  • Node: >=22.22.3 <23 || >=24.15.0 <25
  • MongoDB: 8.0
  • Apps-Engine: 1.67.0

Note it seems to occur on 8.5.x as well, but you still need go fix your install.

This is under investigation by the team.

In version 4.79.0 of beta channel file downloads are available - possible

Note: