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

bug: getExternalStoragePublicDirectory is deprecated on Android 10 #2560

Closed
jcesarmobile opened this issue Mar 11, 2020 · 2 comments
Closed
Milestone

Comments

@jcesarmobile
Copy link
Member

getExternalStoragePublicDirectory has been deprecated on Android 10 and files there are no longer accessible.

We use it in Filesystem plugin for "DOCUMENTS" directory.

So options are:

  1. Remove "DOCUMENTS" for Android
  2. Return an error on Android 10 devices but keep it working in older devices
  3. Might be possible to read/write from/to Documents if you show the user a picker to create/select the file.

We also used it in the Camera plugin, but has been removed (#2559)

@jcesarmobile jcesarmobile added this to the 2.0.0 milestone Mar 11, 2020
@jcesarmobile jcesarmobile added the needs discussion decisions must be made before working on it label Mar 23, 2020
@jcesarmobile jcesarmobile removed the needs discussion decisions must be made before working on it label Mar 30, 2020
@jcesarmobile
Copy link
Member Author

The decision was to not change the code.
On Android 10+ the Filesystem plugin already returned errors because it's not accesible.
It has been documented that it's not accesible on Android 10+ on #2663, so closing.

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 12, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant