ShoutSocial / share_handler

A plugin to facilitate receiving and handling share intents
43 stars 45 forks source link

FileNotFoundException on Android Despite Having share_targets.xml and Proper Permissions #74

Open mirkancal opened 1 year ago

mirkancal commented 1 year ago

Hi there,

I've implemented all the necessary configurations and the app compiles without issues. However, I encounter a java.io.FileNotFoundException at runtime on Android. Here is the relevant stack trace:

E/ShortcutInfoCompatSaver(19172): java.io.FileNotFoundException: /data/user/0/app.mv.good_app/files/ShortcutInfoCompatSaver_share_targets/targets.xml: open failed: ENOENT (No such file or directory)
... [Rest of the trace]

Context:

Flutter Version: 3.13.9 Android SDK: 33 targetSdk: 33

Configuration:

share_targets.xml is present in the app. I have granted READ_EXTERNAL_STORAGE permission in the manifest. Mime type is set to catch-all (/), and the app runs smoothly on Android other than this issue. Despite these configurations, the issue persists. Any insights would be greatly appreciated.

Thank you!