RocketChat / RocketChat/Rocket.Chat.ReactNative

Can't open PDF attachments on android

Open
#4,726 15 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

🐛 bug
Dominant language
TypeScript
Stars
2.4k
Forks
1.5k
Avg merge
1d 18h
Merged PRs (30d)
90

Description

Description:

When I open a pdf, it sends me to the play store searching for a reader when there are already apps capable of handling pdfs installed.

Environment Information:
  • Rocket.Chat Server Version: 4.8
  • Rocket.Chat App Version: 4.32.0.35745
  • Device Name: Pixel 5a
  • OS Version: Android 13
Steps to reproduce:
  1. Click on Pdf attachment
Expected behavior:

Open with app used for pdf (or prompt if one wasn't already selected)

Actual behavior:

Opens google play with application/pdf in search field. It does download the file and when I open the file using the file app, it opens correctly.

Additional context:

Pdfs open fine using other applications on this device.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is identified in the issue. Start by reproducing the PDF attachment flow on Android 13 with the listed app versions; trace the attachment-opening entry point and verify that completion opens an installed PDF handler or shows a chooser instead of Google Play.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.