apache / apache/cordova-plugin-file-transfer
File download doesn't ask for permission
- Dominant language
- JavaScript
- Stars
- 606
- Forks
- 874
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
File download on android doesn't ask for the permission for storage permission. So when I call the download it gets rejected because of permission denied
## Problem
### What is expected to happen?
Ask for permission before download if it doesn't have storage permission
### What does actually happen?
The download fails with permission denied.
## Information
In the docs it is mentioned how to ask for permission https://ionicframework.com/docs/native/android-permissions
have to ask for https://developer.android.com/reference/android/Manifest.permission.html#WRITE_EXTERNAL_STORAGE permission before.
### Command or Code
### Environment, Platform, Device
### Version information
## Checklist
- [x] I searched for existing GitHub issues
- [X ] I updated all Cordova tooling to most recent version
- [X ] I included all the necessary information above
Contributor guide
Research direction
Start by reproducing an Android file download without WRITE_EXTERNAL_STORAGE permission and review the Android permission guidance linked in the issue. Trace the download entry point to determine where the permission failure occurs. Done means the permission is requested before the download when needed, and the download no longer immediately fails with permission denied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100