Skip to content

Conversation

@rbreckner
Copy link

Change reasons

I use the plugin in an app where usage of file picker and consumption of the returned path are not at the same moment. After restarting the app or rebooting the device, the path is invalidated on Android, while it works fine on iOS.

With the provided changes and my little understanding of native Android code, in pickFile(...) it is possible to optionally use a different Intent which grants persistence permission, which will be taken later inside the activity callback.

Pull request checklist

Please check if your PR fulfills the following requirements:

  • The changes have been tested successfully.
  • A changeset has been created (npm run changeset).

@robingenz
Copy link
Member

Thank you for your PR. I am currently planning to make a complete rewrite of the plugin. For this reason I would like to leave your PR open. However, I keep this issue in mind.

René Breckner added 4 commits September 10, 2024 14:38
…ntent-url-option

# Conflicts:
#	package-lock.json
#	packages/file-picker/README.md
#	packages/file-picker/android/src/main/java/io/capawesome/capacitorjs/plugins/filepicker/FilePickerPlugin.java
…ption

# Conflicts:
#	package-lock.json
#	packages/file-picker/README.md
#	packages/file-picker/android/src/main/java/io/capawesome/capacitorjs/plugins/filepicker/FilePickerPlugin.java
#	packages/file-picker/package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants