Closed cyril-colin closed 3 years ago
I had a problem with my build process... I fact all was working ! Sorry for useless issue !
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.
Hi, and thank you for your work !
Bug Report
Capacitor Version
Platform(s)
android
Current Behavior
I try to implement a native share feature on android. So, first of all, I use WebIntent to get my shared image from a
SEND
orSEND_MULTIPLE
intent action.Then, I pass the URI from intent clip items to my function using Filesystem official plugin :
Then, when I try to share an image from Google Photo application on a virtual device running Android 10 / SDK 29, I have this java error :
Expected Behavior
The expected behavior is : when I use this method :
Filesystem.readFile({path}).then(console.log)
the application doesn't stop/Code Reproduction
Sorry, I will try later to make "working" project with this bug
Other Technical Details
npm --version
6.14.8:node --version
v12.18.2:Additional Context
This seems to be an Android 10+ issue since they have implemented the
scoped storage
https://developer.android.com/training/data-storage#scoped-storage and I think my version of Filesystem plugin is not up to date with this mecanism, or I have to do some stuff before requesting the file...Otherwise, I have these permissions in my AndroidManifest.xml :
application
tag : `android:requestLegacyExternalStorage="true"``<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />