hpoul / file_picker_writable

Flutter plugin to choose files which can be read, referenced and written back at a later time.
https://pub.dev/packages/file_picker_writable
MIT License
17 stars 13 forks source link

Incompatible with other intent handling plugins #22

Open jonjomckay opened 3 years ago

jonjomckay commented 3 years ago

I'm trying to use this library (v2.0.0) on Android along with flutter_local_notifications (5.0.0+4), and the latter's onSelectNotification is never being called due to this library saying it can handle all incoming intents.

I've looked into the code, and it looks like this is expected behaviour, but it's not always desirable. Can it be made configurable somehow?

Right now, I'm able to bypass the issue by uncommenting this code, which makes the plugin only handle a few specific content schemes: https://github.com/hpoul/file_picker_writable/blob/f48dd271ae0b39468051f22a4ffeb2406762b661/android/src/main/kotlin/codeux/design/filepicker/file_picker_writable/FilePickerWritableImpl.kt#L325-L328