wordpress-mobile / wordpress-mobile/WordPress-Android

Android 9 and lower devices should guide users to system settings if the permission was denied

Open
#19,131 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] High [Type] Bug Reader
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

When downloading a file on the reader, if the "Don't ask again" option is selected for file download before, the app should inform the user and forward them to the system settings.

Actual behavior

On Android 9 devices, when downloading a file on the reader, if the "Don't ask again" option is selected before, downloading a file action does nothing.

https://github.com/wordpress-mobile/WordPress-Android/assets/2471769/75144c76-a5af-407f-ac2a-edbe69f3b601

Steps to reproduce the behavior

On Web:

  1. Create a post with a File block and upload a PDF (or other non-media file) to it
  2. Like that post (on Reader) so you can easily find it on the mobile app Reader

On the Jetpack app:

  1. In the Reader, find the above post
  2. Tap the download link (note: currently, the Reader shows an extra Download text after the file name)
  3. Deny the permission.
  4. Tap the download link again.
  5. Select the "Don't ask again" button and deny the permission.
  6. Tap the download link again.
  7. Notice that you can't download it or be guided to the system settings.
Tested on Pixel 7 Pro API 28 Emulator, Android 9, JPAndroid 23.1

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

Reproduce the issue in the Reader on a Pixel 7 Pro API 28 emulator using the listed download and permission-denial steps. Trace the download link's permission handling on Android 9 and lower; done means a prior “Don't ask again” denial informs the user and opens system settings.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.