capawesome-team / capacitor-plugins

⚡️ Community plugins for Capacitor. Supports Android, iOS and the Web.
https://capawesome.io/plugins/
228 stars 36 forks source link

feat(file-picker): use the Photo Picker on Android #107

Open robingenz opened 9 months ago

robingenz commented 9 months ago

Plugin(s)

Current problem

The new Photo Picker on Android offers a modern UI and additional options (e.g. see #17).

Preferred solution

Implement the new Photo Picker.

Important: In case the new Photo Picker does not support all the features of the old Photo Picker, it would be good if we could add a legacy option to continue using the old implementation.

Alternative options

No response

Additional context

This might help: https://github.com/ionic-team/capacitor-plugins/pull/1833

Before submitting

webfletch commented 1 week ago

Something to consider regarding the "legacy" option is that this may not be possible because as discussed here https://github.com/ionic-team/capacitor-plugins/pull/1833#issuecomment-2385550039, there could be cases where Google detects the "legacy code" even if the app is not using the "legacy" option and therefore rejects peoples apps because of it.

Also, I thought I would mention if you didn't already know, that as of 31st of this month (i.e. 31st October), you may find Android App updates getting rejected if they are using your current implementation of File Picker because Google are forcing the use of their Photo Picker, unless the user has requested an extension (until January 2025) or that they have been approved in regards to the core functionality of their App requiring broad access to the photo library:

https://support.google.com/googleplay/android-developer/answer/14115180#:~:text=October%2031%2C%202024%3A%20Developers%20are,be%20blocked%20from%20updating%20their%20app.

robingenz commented 1 week ago

Thanks for letting me know. I didn't know that. I will prioritize this issue.