Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request]: allow to use Android's intent resolver with share_plus #3269

Open
ekuleshov opened this issue Sep 30, 2024 · 2 comments
Open

[Request]: allow to use Android's intent resolver with share_plus #3269

ekuleshov opened this issue Sep 30, 2024 · 2 comments
Labels
enhancement New feature or request triage

Comments

@ekuleshov
Copy link

Plugin

share_plus

Use case

Currently the share_plus plugin on Android always forces user to use the Sharesheet UI.

It works in many cases, however it does not allow user to select a default target for a given mimetype and then omit the intent selection for the following calls.

Proposal

It would be great if the share_plus provided an option/flag to use the Intent resolver on Android.

So, the user can select desired app/intent and make it a default selection for the following calls.

@ekuleshov ekuleshov added enhancement New feature or request triage labels Sep 30, 2024
@miquelbeltran
Copy link
Member

If I am not wrong, you can use android_intent_plus to accomplish the same.

@ekuleshov
Copy link
Author

If I am not wrong, you can use android_intent_plus to accomplish the same.

I'd prefer not to drag in another dependency.
Also, unlike share_plus that one does not return any result, e.g. not possible to tell if user canceled operation or if intent was selected.

It could be similar to image_picker_android, which uses the following approach. So, useAndroidIntentChooser here and set it to false.

  if (imagePickerImplementation is ImagePickerAndroid) {
    imagePickerImplementation.useAndroidPhotoPicker = true;
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

No branches or pull requests

2 participants