Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): enable download functionality with Android Q #310

Merged
merged 4 commits into from
Sep 24, 2021

Conversation

kpatfln
Copy link
Contributor

@kpatfln kpatfln commented Sep 8, 2021

Platforms affected

Android

Motivation and Context

On Android Q and above, the download functionality does not function.

Description

This change enables use of FileOutputStream to save files into the download folder.

Testing

Without the changes, Android Q will fail to download, while on Android P and below it will work fine.

With the changes, Android Q and above will have no problems with downloads.

Issues Resolved

#300
#291

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

Copy link
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you adding back all of the deprecated Whitelist code?

It was removed here: 2cdb040

@kpatfln
Copy link
Contributor Author

kpatfln commented Sep 9, 2021

@erisu Removed the whitelist code - it wasn't necessary. Thanks!

@kpatfln kpatfln changed the title [Android] Enable using MediaStore API on Android Q [Android] Enable Download Functionality with Android Q Sep 14, 2021
@kpatfln kpatfln requested a review from erisu September 14, 2021 22:50
@kpatfln
Copy link
Contributor Author

kpatfln commented Sep 24, 2021

@erisu Hi - I've completed the suggested changes. How does it look? :)

Copy link
Contributor

@breautek breautek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Tested it in app, downloaded the home page of my website, seems to work as expected 👍

@erisu erisu changed the title [Android] Enable Download Functionality with Android Q fix(android): enable download functionality with Android Q Sep 24, 2021
@erisu erisu merged commit cab8b46 into apache:master Sep 24, 2021
dpalou pushed a commit to moodlemobile/cordova-plugin-file-transfer that referenced this pull request Jan 14, 2022
jcaron23 added a commit to Netisse/cordova-plugin-file-transfer-tests that referenced this pull request Jun 15, 2023
jcaron23 added a commit to Netisse/cordova-plugin-file-transfer-tests that referenced this pull request Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants