anytime_podcast_player icon indicating copy to clipboard operation
anytime_podcast_player copied to clipboard

Downloading podcasts to an SD card fails on Android 13+

Open amugofjava opened this issue 6 months ago • 0 comments

Describe the bug With SD card enabled in settings, the first time an episode is downloaded Anytime should prompt for permissions. This is not happening and the download fails.

To Reproduce Steps to reproduce the behavior:

  1. Using a device/emulator that supports SD cards, go to settings and enable downloading to SD cards.
  2. Go to a podcast and attempt to download an episode.
  3. The download fails.

Expected behavior The episode should be downloaded successfully.

Smartphone (please complete the following information):

  • Emulator running Android 14 and with SD Card added.

Additional context The WRITE_EXTERNAL_STORAGE permission was deprecated in Android 10 and removed in 13. Anytime checks for permissions to external storage, but in 13+ this will always fail. It is no longer required to request storage permission when writing to app specific directories on SD cards.

The solution is to add an API level check and perform a permission check appropriately.

amugofjava avatar Jun 03 '25 10:06 amugofjava